Class StateEntry
One state in a layer's state machine.
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
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
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
Motion
Declaration
public MotionKind Motion { get; }
Property Value
Speed
Declaration
public float Speed { get; }
Property Value
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.
|