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.ProceduralAnimator.Infrastructure.ProceduralLayers
Assembly: Serenity.UnityProceduralAnimator.Infrastructure.dll
Syntax
public class MaterialColorSequenceLayerSO : ProceduralLayerSO, IProceduralLayer<UnityProceduralContext>, IFoundationSettings
Constructors
MaterialColorSequenceLayerSO()
Declaration
public MaterialColorSequenceLayerSO()
Properties
DrivenChannels
Writes only Material — see the 2-delta Evaluate(in UnityProceduralContext, float, ref PoseDelta, ref MaterialDelta) override below.
Declaration
public override ProceduralChannels DrivenChannels { get; }
Property Value
| Type | Description |
|---|---|
| ProceduralChannels |
Overrides
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()