logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class StateModulatedOffsetLayerSO

    Procedural layer that applies static rotation offsets to target bones, scaled by a state value.

    Mechanism: Each configured bone group receives a fixed rotation offset that is multiplied by the state intensity and layer weight. Supports paired bones with mirrored Z-axis and optional asymmetry.

    Common applications: Gravity-based deformation, pose adjustments, state-driven offsets.

    Inheritance
    object
    ProceduralLayerSO
    StateModulatedOffsetLayerSO
    Inherited Members
    ProceduralLayerSO.displayName
    ProceduralLayerSO.Evaluate(in UnityProceduralContext, float, ref PoseDelta, ref MaterialDelta)
    ProceduralLayerSO.Evaluate(in UnityProceduralContext, float, ref PoseDelta, ref MaterialDelta, ref TransformDelta)
    ProceduralLayerSO.OnLayerActivated()
    ProceduralLayerSO.OnLayerDeactivated()
    ProceduralLayerSO.DisplayName
    Namespace: Serenity.ProceduralExpression.Infrastructure.ProceduralLayers
    Assembly: Serenity.UnityProceduralExpression.Infrastructure.dll
    Syntax
    public class StateModulatedOffsetLayerSO : ProceduralLayerSO

    Constructors

    StateModulatedOffsetLayerSO()

    Declaration
    public StateModulatedOffsetLayerSO()

    Methods

    Evaluate(in UnityProceduralContext, float, ref PoseDelta)

    Evaluates this layer and adds its contribution to the pose delta. Called every frame for all active layers.

    Declaration
    public override void Evaluate(in UnityProceduralContext ctx, float weight, ref PoseDelta pose)
    Parameters
    Type Name Description
    UnityProceduralContext ctx

    The procedural context containing state and time information.

    float weight

    The weight of this layer (0-1). Used for blending.

    PoseDelta pose

    The pose delta to add contributions to.

    Overrides
    ProceduralLayerSO.Evaluate(in UnityProceduralContext, float, ref PoseDelta)
    In this article
    © 2026 Serenity. All Rights Reserved