logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ModelAnimatorTransitionCreatorTests

    EditMode tests for ModelAnimatorTransitionCreator, split out of ModelAnimatorCreatorTests the same way the production code split — see ModelAnimatorParameterCreatorTests for the parameter half.

    Inheritance
    object
    ModelAnimatorTransitionCreatorTests
    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 ModelAnimatorTransitionCreatorTests

    Constructors

    ModelAnimatorTransitionCreatorTests()

    Declaration
    public ModelAnimatorTransitionCreatorTests()

    Methods

    AddTransition_AnyStateSource_LandsInAnyStateTransitions()

    Declaration
    public void AddTransition_AnyStateSource_LandsInAnyStateTransitions()

    AddTransition_NoCondition_DefaultsHasExitTimeTrue()

    Declaration
    public void AddTransition_NoCondition_DefaultsHasExitTimeTrue()

    AddTransition_StateToStateWithCondition_SetsConditionAndDefaultsHasExitTimeFalse()

    Declaration
    public void AddTransition_StateToStateWithCondition_SetsConditionAndDefaultsHasExitTimeFalse()

    DeleteTransition_ExistingTransition_RemovesItAsASubAsset()

    Declaration
    public void DeleteTransition_ExistingTransition_RemovesItAsASubAsset()

    SetLayerDefaultWeight_PersistsAfterSaveAndFreshReload()

    The layers-copy-trap regression test: proves SetLayerDefaultWeight writes back through controller.layers = layers rather than silently mutating a throwaway array copy. Reads back via a fresh UnityEditor.AssetDatabase.LoadAssetAtPath``1(System.String), not the pre-op local, so a regressed no-writeback version of the setter would fail this assertion.

    Declaration
    public void SetLayerDefaultWeight_PersistsAfterSaveAndFreshReload()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

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