logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IProceduralLayer<TContext>

    Interface for continuous procedural animation layers (e.g., breathing, sway, tremor). Layers are evaluated every frame and contribute weighted offsets to the final pose.

    Namespace: Serenity.ProceduralExpression.Application.Interfaces
    Assembly: Serenity.ProceduralExpression.Application.dll
    Syntax
    public interface IProceduralLayer<TContext>
    Type Parameters
    Name Description
    TContext

    The type of procedural context used by the implementation.

    Methods

    Evaluate(in TContext, float, ref PoseDelta)

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

    Declaration
    void Evaluate(in TContext ctx, float weight, ref PoseDelta pose)
    Parameters
    Type Name Description
    TContext 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.

    In this article
    © 2026 Serenity. All Rights Reserved