Component:AlphaOverLifetimeLinearGradient: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
Automated: update SyncDelegates
 
(2 intermediate revisions by one other user not shown)
Line 3: Line 3:
|Name=Alpha Over Lifetime Linear Gradient
|Name=Alpha Over Lifetime Linear Gradient
}}
}}
{{stub}}
The '''AlphaOverLifetimeLinearGradient''' component implements the older alpha over lifetime system that came from Unity. It allows for particles to change alpha depending on how long they have existed for.
 
A more modern alternative to this with actual editablilty is the [[Component:ColorOverLifetimeTexture|ColorOverLifetimeTexture]] component.
 
This component is part of the [[Photon Dust]] system made by [[User:Frooxius|Frooxius]].


== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|AlphaOverLifetime|{{RootFieldType|SyncLinear`1|[[Type:Float|Float]]}}|TypeAdv0=true|
|AlphaOverLifetime|{{RootFieldType|SyncLinear`1|[[Type:Float|Float]]}}|TypeAdv0=true| The Linear Gradient of alpha values to use over lifetime.
}}
}}


== Sync Delegates ==
== Sync Delegates ==
{{Table ComponentTriggers
{{Table ComponentTriggers
|SetupAlphaFadeInFadeOut(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
|SetupAlphaFadeOut(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
|SetupAlphaFadeIn(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
|ClearFadeEffects(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
}}
}}


== Usage ==
== Usage ==
Attach to a slot, add to the list of modules in a [[Component:ParticleSystem]], and adjust the values to make the desired effect from this component.


== Examples ==
== Examples ==


== See Also ==
== See Also ==
* [[Component:ColorOverLifetimeStartEnd]]
* [[Component:ColorHSV OverLifetimeStartEnd]]
* [[Component:ColorOverLifetimeTexture]]
* [[Component:AlphaOverLifetimeLinearGradient]]
* [[Component:ParticleSystem]]
* [[Photon Dust]]


[[Category:Components:Rendering:Particle System:Modules{{#translation:}}|Alpha Over Lifetime Linear Gradient]]
[[Category:Components:Rendering:Particle System:Modules{{#translation:}}|Alpha Over Lifetime Linear Gradient]]
[[Category:Components{{#translation:}}|Alpha Over Lifetime Linear Gradient]]
[[Category:Components{{#translation:}}|Alpha Over Lifetime Linear Gradient]]
[[Category:ComponentStubs]]

Latest revision as of 22:28, 16 March 2025

Component image 
File:AlphaOverLifetimeLinearGradientComponent.png
Alpha Over Lifetime Linear Gradient component as seen in the Scene Inspector

The AlphaOverLifetimeLinearGradient component implements the older alpha over lifetime system that came from Unity. It allows for particles to change alpha depending on how long they have existed for.

A more modern alternative to this with actual editablilty is the ColorOverLifetimeTexture component.

This component is part of the Photon Dust system made by Frooxius.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
AlphaOverLifetime direct SyncLinear`1<Float> The Linear Gradient of alpha values to use over lifetime.

Sync Delegates

Triggers
Method Name Method type and Arguments. Description
SetupAlphaFadeInFadeOut(IButton, ButtonEventData) Delegate<IButton: button, ButtonEventData: eventData> -> Void : HIDDEN METHOD
SetupAlphaFadeOut(IButton, ButtonEventData) Delegate<IButton: button, ButtonEventData: eventData> -> Void : HIDDEN METHOD
SetupAlphaFadeIn(IButton, ButtonEventData) Delegate<IButton: button, ButtonEventData: eventData> -> Void : HIDDEN METHOD
ClearFadeEffects(IButton, ButtonEventData) Delegate<IButton: button, ButtonEventData: eventData> -> Void : HIDDEN METHOD

Usage

Attach to a slot, add to the list of modules in a Component:ParticleSystem, and adjust the values to make the desired effect from this component.

Examples

See Also