logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ProceduralAnimatorLayerActivationTests

    EditMode regression lock for ProceduralAnimatorComponent's activation-relative one-shot API: ActivateLayer(ProceduralLayerSO), DeactivateLayer(ProceduralLayerSO), and the auto-deactivation ProceduralLayerWeightScheduler drives for ON_ACTIVATE layers with a RepeatCount. Reuses the same in-memory GameObject/ScriptableObject fixture approach as ProceduralAnimatorTickTests (via Serenity.AnimationHub.Tests.Editor.ProceduralAnimatorTestFixtures's reflection helpers) so the whole pipeline runs without entering Play mode. Also exercises the no-rig Tick path (drivesRig = false, no RigDefinition assigned) and ConfigureRuntimeLayers/RegisterTransformTarget together, since a one-shot ON_ACTIVATE layer is the primary use case those exist for.

    Inheritance
    object
    ProceduralAnimatorLayerActivationTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.AnimationHub.Tests.Editor
    Assembly: Tests.Editor.dll
    Syntax
    public class ProceduralAnimatorLayerActivationTests

    Constructors

    ProceduralAnimatorLayerActivationTests()

    Declaration
    public ProceduralAnimatorLayerActivationTests()

    Methods

    ActivateLayer_Reactivation_RestartsSequenceFromZero()

    Declaration
    public void ActivateLayer_Reactivation_RestartsSequenceFromZero()

    ActivateLayer_SnapsWeightToOne_Immediately()

    Declaration
    public void ActivateLayer_SnapsWeightToOne_Immediately()

    ConfigureRuntimeLayers_AlreadyTrackedLayer_DoesNotClobberCurrentWeight()

    Declaration
    public void ConfigureRuntimeLayers_AlreadyTrackedLayer_DoesNotClobberCurrentWeight()

    DeactivateLayer_SnapsWeightToZero_Immediately()

    Declaration
    public void DeactivateLayer_SnapsWeightToZero_Immediately()

    EvaluateLayers_ArmedViaSetLayerWeight_LayerTimeProgressesAcrossTicks()

    Declaration
    public void EvaluateLayers_ArmedViaSetLayerWeight_LayerTimeProgressesAcrossTicks()

    TearDown()

    Declaration
    public void TearDown()

    TickLayerLifetimes_AutoDeactivates_AfterRepeatCountElapses()

    Declaration
    public void TickLayerLifetimes_AutoDeactivates_AfterRepeatCountElapses()

    TickLayerLifetimes_RepeatCountZero_NeverAutoDeactivates()

    Declaration
    public void TickLayerLifetimes_RepeatCountZero_NeverAutoDeactivates()
    In this article
    © 2026 Serenity. All Rights Reserved