Class StateMachine
Assembly: UnityEngine.dll
Syntax
[Obsolete("StateMachine is obsolete. Use UnityEditor.Animations.AnimatorStateMachine instead (UnityUpgradable) -> UnityEditor.Animations.AnimatorStateMachine", true)]
public class StateMachine : Object
Properties
|
Improve this Doc
View Source
anyStatePosition
Declaration
public Vector3 anyStatePosition { get; set; }
Property Value
|
Improve this Doc
View Source
defaultState
Declaration
public State defaultState { get; set; }
Property Value
|
Improve this Doc
View Source
parentStateMachinePosition
Declaration
public Vector3 parentStateMachinePosition { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
AddAnyStateTransition(State)
Declaration
public Transition AddAnyStateTransition(State dst)
Parameters
Type |
Name |
Description |
State |
dst |
|
Returns
|
Improve this Doc
View Source
AddState(String)
Declaration
public State AddState(string stateName)
Parameters
Type |
Name |
Description |
String |
stateName |
|
Returns
|
Improve this Doc
View Source
AddStateMachine(String)
Declaration
public StateMachine AddStateMachine(string stateMachineName)
Parameters
Type |
Name |
Description |
String |
stateMachineName |
|
Returns
|
Improve this Doc
View Source
AddTransition(State, State)
Declaration
public Transition AddTransition(State src, State dst)
Parameters
Returns
|
Improve this Doc
View Source
GetState(Int32)
Declaration
public State GetState(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
|
Improve this Doc
View Source
GetStateMachine(Int32)
Declaration
public StateMachine GetStateMachine(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
|
Improve this Doc
View Source
GetStateMachinePosition(Int32)
Declaration
public Vector3 GetStateMachinePosition(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
|
Improve this Doc
View Source
GetTransitionsFromState(State)
Declaration
public Transition[] GetTransitionsFromState(State srcState)
Parameters
Type |
Name |
Description |
State |
srcState |
|
Returns
Extension Methods