Component:ColorOverLifetimeLinearGradient: Difference between revisions

From Resonite Wiki
add info
Automated: update SyncDelegates
Line 12: Line 12:
{{Table ComponentFields
{{Table ComponentFields
|ColorOverLifetime|{{RootFieldType|SyncLinear`1|[[Type:ColorX|ColorX]]}}|TypeAdv0=true| A Linear Gradient of colors and points to use to give particles color over lifetime.
|ColorOverLifetime|{{RootFieldType|SyncLinear`1|[[Type:ColorX|ColorX]]}}|TypeAdv0=true| A Linear Gradient of colors and points to use to give particles color over lifetime.
}}
== Sync Delegates ==
{{Table ComponentTriggers
|SetupIntensityFadeInFadeOut(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
|SetupIntensityFadeOut(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
|SetupIntensityFadeIn(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|
}}
}}



Revision as of 22:28, 16 March 2025

Component image 
Color Over Lifetime Linear Gradient component as seen in the Scene Inspector

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

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

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

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.
ColorOverLifetime direct SyncLinear`1<ColorX> A Linear Gradient of colors and points to use to give particles color over lifetime.

Sync Delegates

Triggers
Method Name Method type and Arguments. Is the method hidden? Description
SetupIntensityFadeInFadeOut(IButton, ButtonEventData) Delegate<IButton: button, ButtonEventData: eventData> -> Void : HIDDEN METHOD X SetupIntensityFadeOut(IButton, ButtonEventData)
Delegate<IButton: button, ButtonEventData: eventData> -> Void : HIDDEN METHOD

X Delegate<IButton: button, ButtonEventData: eventData> -> Void : HIDDEN METHOD

ClearFadeEffects(IButton, ButtonEventData) X

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