Class MaterialColorSequenceLayerSO
Procedural layer that animates through a sequence of color steps. Applies color changes via MaterialDelta for per-instance animation using MaterialPropertyBlock.
Common applications: Pulsing effects, damage flashes, status indicators, ambient color cycling.
Inherited Members
Namespace: Serenity.ProceduralExpression.Infrastructure.ProceduralLayers
Assembly: Serenity.UnityProceduralExpression.Infrastructure.dll
Syntax
public class MaterialColorSequenceLayerSO : ProceduralLayerSO
Constructors
MaterialColorSequenceLayerSO()
Declaration
public MaterialColorSequenceLayerSO()
Methods
Evaluate(in UnityProceduralContext, float, ref PoseDelta)
Legacy pose-only evaluation. Does nothing for material layers.
Declaration
public override void Evaluate(in UnityProceduralContext ctx, float weight, ref PoseDelta pose)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityProceduralContext | ctx | |
| float | weight | |
| PoseDelta | pose |
Overrides
Evaluate(in UnityProceduralContext, float, ref PoseDelta, ref MaterialDelta)
Evaluates the color sequence and adds the current color to the material delta.
Declaration
public override void Evaluate(in UnityProceduralContext ctx, float weight, ref PoseDelta pose, ref MaterialDelta material)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityProceduralContext | ctx | |
| float | weight | |
| PoseDelta | pose | |
| MaterialDelta | material |
Overrides
OnLayerActivated()
Optional initialization called when the layer becomes active. Override to set up any required runtime state.
Declaration
public override void OnLayerActivated()