logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class StateEntry

    One state in a layer's state machine.

    Inheritance
    object
    StateEntry
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Editor.AnimationHub.Discovery
    Assembly: Serenity.AnimationHub.Editor.dll
    Syntax
    public sealed class StateEntry

    Constructors

    StateEntry(string, bool, MotionKind, string, string, bool, float, int)

    Declaration
    public StateEntry(string statePath, bool isDefaultState, MotionKind motion, string clipAssetPath, string clipSubAssetName, bool clipIsEmbedded, float speed, int transitionCount)
    Parameters
    Type Name Description
    string statePath
    bool isDefaultState
    MotionKind motion
    string clipAssetPath
    string clipSubAssetName
    bool clipIsEmbedded
    float speed
    int transitionCount

    Properties

    ClipAssetPath

    Declaration
    public string ClipAssetPath { get; }
    Property Value
    Type Description
    string

    Project-relative path of the played clip's asset, or empty when the state plays no single clip.

    ClipIsEmbedded

    Declaration
    public bool ClipIsEmbedded { get; }
    Property Value
    Type Description
    bool

    ClipSubAssetName

    Declaration
    public string ClipSubAssetName { get; }
    Property Value
    Type Description
    string

    The played clip's own (sub-asset) name, or empty when the state plays no single clip.

    IsDefaultState

    Declaration
    public bool IsDefaultState { get; }
    Property Value
    Type Description
    bool

    Motion

    Declaration
    public MotionKind Motion { get; }
    Property Value
    Type Description
    MotionKind

    Speed

    Declaration
    public float Speed { get; }
    Property Value
    Type Description
    float

    StatePath

    Declaration
    public string StatePath { get; }
    Property Value
    Type Description
    string

    Full path of the state, sub-state machines flattened with '/' (e.g. "Base Layer/Locomotion/Idle").

    TransitionCount

    Declaration
    public int TransitionCount { get; }
    Property Value
    Type Description
    int

    Number of outgoing transitions declared directly on this state.

    In this article
    © 2026 Serenity. All Rights Reserved