Class StateMachine
Inheritance
StateMachine
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Unity.VisualScripting
Syntax
[AddComponentMenu("Visual Scripting/State Machine")]
[RequireComponent(typeof(Variables))]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.visualscripting@latest/index.html?subfolder=/manual/vs-graphs-machines-macros.html")]
public sealed class StateMachine : EventMachine<StateGraph, StateGraphAsset>, ISerializationCallbackReceiver, IEventMachine, IMachine, IGraphRoot, IGraphNester, IGraphParent, IAotStubbable
Methods
DefaultGraph()
Declaration
public override StateGraph DefaultGraph()
Returns
Type | Description |
---|---|
StateGraph |
Overrides
Unity.VisualScripting.Machine<Unity.VisualScripting.StateGraph, Unity.VisualScripting.StateGraphAsset>.DefaultGraph()
OnDisable()
Declaration
protected override void OnDisable()
Overrides
Unity.VisualScripting.EventMachine<Unity.VisualScripting.StateGraph, Unity.VisualScripting.StateGraphAsset>.OnDisable()
OnEnable()
Declaration
protected override void OnEnable()
Overrides
Unity.VisualScripting.EventMachine<Unity.VisualScripting.StateGraph, Unity.VisualScripting.StateGraphAsset>.OnEnable()
OnInstantiateWhileEnabled()
Declaration
protected override void OnInstantiateWhileEnabled()
Overrides
Unity.VisualScripting.EventMachine<Unity.VisualScripting.StateGraph, Unity.VisualScripting.StateGraphAsset>.OnInstantiateWhileEnabled()
OnUninstantiateWhileEnabled()
Declaration
protected override void OnUninstantiateWhileEnabled()
Overrides
Unity.VisualScripting.EventMachine<Unity.VisualScripting.StateGraph, Unity.VisualScripting.StateGraphAsset>.OnUninstantiateWhileEnabled()
ShowData()
Declaration
[ContextMenu("Show Data...")]
protected override void ShowData()