logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    ProceduralLayerSO
    MaterialColorSequenceLayerSO
    Inherited Members
    ProceduralLayerSO.displayName
    ProceduralLayerSO.Evaluate(in UnityProceduralContext, float, ref PoseDelta, ref MaterialDelta, ref TransformDelta)
    ProceduralLayerSO.OnLayerDeactivated()
    ProceduralLayerSO.DisplayName
    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
    ProceduralLayerSO.Evaluate(in UnityProceduralContext, float, ref PoseDelta)

    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
    ProceduralLayerSO.Evaluate(in UnityProceduralContext, float, ref PoseDelta, ref MaterialDelta)

    OnLayerActivated()

    Optional initialization called when the layer becomes active. Override to set up any required runtime state.

    Declaration
    public override void OnLayerActivated()
    Overrides
    ProceduralLayerSO.OnLayerActivated()
    In this article
    © 2026 Serenity. All Rights Reserved