docs.unity.cn
    Show / Hide Table of Contents

    Class StateMachine

    Inheritance
    Object
    Object
    Component
    Behaviour
    MonoBehaviour
    LudiqBehaviour
    Machine<StateGraph, StateGraphAsset>
    EventMachine<StateGraph, StateGraphAsset>
    StateMachine
    Inherited Members
    EventMachine<StateGraph, StateGraphAsset>.TriggerEvent(String)
    EventMachine<StateGraph, StateGraphAsset>.TriggerEvent<TArgs>(String, TArgs)
    EventMachine<StateGraph, StateGraphAsset>.TriggerUnregisteredEvent(String)
    EventMachine<StateGraph, StateGraphAsset>.TriggerRegisteredEvent<TArgs>(EventHook, TArgs)
    EventMachine<StateGraph, StateGraphAsset>.TriggerUnregisteredEvent<TArgs>(EventHook, TArgs)
    EventMachine<StateGraph, StateGraphAsset>.Awake()
    EventMachine<StateGraph, StateGraphAsset>.OnEnable()
    EventMachine<StateGraph, StateGraphAsset>.Start()
    EventMachine<StateGraph, StateGraphAsset>.OnInstantiateWhileEnabled()
    EventMachine<StateGraph, StateGraphAsset>.Update()
    EventMachine<StateGraph, StateGraphAsset>.FixedUpdate()
    EventMachine<StateGraph, StateGraphAsset>.LateUpdate()
    EventMachine<StateGraph, StateGraphAsset>.OnUninstantiateWhileEnabled()
    EventMachine<StateGraph, StateGraphAsset>.OnDisable()
    EventMachine<StateGraph, StateGraphAsset>.OnDestroy()
    EventMachine<StateGraph, StateGraphAsset>.TriggerAnimationEvent(AnimationEvent)
    EventMachine<StateGraph, StateGraphAsset>.TriggerUnityEvent(String)
    EventMachine<StateGraph, StateGraphAsset>.OnDrawGizmos()
    EventMachine<StateGraph, StateGraphAsset>.OnDrawGizmosSelected()
    Machine<StateGraph, StateGraphAsset>.nest
    Machine<StateGraph, StateGraphAsset>.IGraphNester.nest
    Machine<StateGraph, StateGraphAsset>.IMachine.threadSafeGameObject
    Machine<StateGraph, StateGraphAsset>.reference
    Machine<StateGraph, StateGraphAsset>.hasGraph
    Machine<StateGraph, StateGraphAsset>.graph
    Machine<StateGraph, StateGraphAsset>.graphData
    Machine<StateGraph, StateGraphAsset>.IGraphParent.isSerializationRoot
    Machine<StateGraph, StateGraphAsset>.IGraphParent.serializedObject
    Machine<StateGraph, StateGraphAsset>.IGraphParent.childGraph
    Machine<StateGraph, StateGraphAsset>.IAotStubbable.aotStubs
    Machine<StateGraph, StateGraphAsset>.isDescriptionValid
    Machine<StateGraph, StateGraphAsset>.OnValidate()
    Machine<StateGraph, StateGraphAsset>.GetReference()
    Machine<StateGraph, StateGraphAsset>.InstantiateNest()
    Machine<StateGraph, StateGraphAsset>.UninstantiateNest()
    Machine<StateGraph, StateGraphAsset>.DefaultGraph()
    Machine<StateGraph, StateGraphAsset>.IGraphParent.DefaultGraph()
    LudiqBehaviour._data
    LudiqBehaviour.ISerializationCallbackReceiver.OnBeforeSerialize()
    LudiqBehaviour.ISerializationCallbackReceiver.OnAfterDeserialize()
    LudiqBehaviour.OnBeforeSerialize()
    LudiqBehaviour.OnAfterSerialize()
    LudiqBehaviour.OnBeforeDeserialize()
    LudiqBehaviour.OnAfterDeserialize()
    LudiqBehaviour.ToString()
    MonoBehaviour.IsInvoking()
    MonoBehaviour.CancelInvoke()
    MonoBehaviour.Invoke(String, Single)
    MonoBehaviour.InvokeRepeating(String, Single, Single)
    MonoBehaviour.CancelInvoke(String)
    MonoBehaviour.IsInvoking(String)
    MonoBehaviour.StartCoroutine(String)
    MonoBehaviour.StartCoroutine(String, Object)
    MonoBehaviour.StartCoroutine(IEnumerator)
    MonoBehaviour.StartCoroutine_Auto(IEnumerator)
    MonoBehaviour.StopCoroutine(IEnumerator)
    MonoBehaviour.StopCoroutine(Coroutine)
    MonoBehaviour.StopCoroutine(String)
    MonoBehaviour.StopAllCoroutines()
    MonoBehaviour.print(Object)
    MonoBehaviour.useGUILayout
    MonoBehaviour.runInEditMode
    Behaviour.enabled
    Behaviour.isActiveAndEnabled
    Component.GetComponent(Type)
    Component.GetComponent<T>()
    Component.TryGetComponent(Type, Component)
    Component.TryGetComponent<T>(T)
    Component.GetComponent(String)
    Component.GetComponentInChildren(Type, Boolean)
    Component.GetComponentInChildren(Type)
    Component.GetComponentInChildren<T>(Boolean)
    Component.GetComponentInChildren<T>()
    Component.GetComponentsInChildren(Type, Boolean)
    Component.GetComponentsInChildren(Type)
    Component.GetComponentsInChildren<T>(Boolean)
    Component.GetComponentsInChildren<T>(Boolean, List<T>)
    Component.GetComponentsInChildren<T>()
    Component.GetComponentsInChildren<T>(List<T>)
    Component.GetComponentInParent(Type)
    Component.GetComponentInParent<T>()
    Component.GetComponentsInParent(Type, Boolean)
    Component.GetComponentsInParent(Type)
    Component.GetComponentsInParent<T>(Boolean)
    Component.GetComponentsInParent<T>(Boolean, List<T>)
    Component.GetComponentsInParent<T>()
    Component.GetComponents(Type)
    Component.GetComponents(Type, List<Component>)
    Component.GetComponents<T>(List<T>)
    Component.GetComponents<T>()
    Component.CompareTag(String)
    Component.SendMessageUpwards(String, Object, SendMessageOptions)
    Component.SendMessageUpwards(String, Object)
    Component.SendMessageUpwards(String)
    Component.SendMessageUpwards(String, SendMessageOptions)
    Component.SendMessage(String, Object)
    Component.SendMessage(String)
    Component.SendMessage(String, Object, SendMessageOptions)
    Component.SendMessage(String, SendMessageOptions)
    Component.BroadcastMessage(String, Object, SendMessageOptions)
    Component.BroadcastMessage(String, Object)
    Component.BroadcastMessage(String)
    Component.BroadcastMessage(String, SendMessageOptions)
    Component.transform
    Component.gameObject
    Component.tag
    Component.rigidbody
    Component.rigidbody2D
    Component.camera
    Component.light
    Component.animation
    Component.constantForce
    Component.renderer
    Component.audio
    Component.networkView
    Component.collider
    Component.collider2D
    Component.hingeJoint
    Component.particleSystem
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, Boolean)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, Boolean)
    Object.name
    Object.hideFlags
    Namespace: Unity.VisualScripting
    Syntax
    [AddComponentMenu("Visual Scripting/State Machine")]
    [RequireComponent(typeof(Variables))]
    [HelpURL("https://docs.unity.cn/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()
    Overrides
    LudiqBehaviour.ShowData()

    Extension Methods

    XAnalyserProvider.Analyser(Object, IGraphContext)
    XAnalyserProvider.Analyser<TAnalyser>(Object, IGraphContext)
    XAnalyserProvider.Analysis(Object, IGraphContext)
    XAnalyserProvider.Analysis<TAnalysis>(Object, IGraphContext)
    XAnalyserProvider.Analyser(Object, GraphReference)
    XAnalyserProvider.Analyser<TAnalyser>(Object, GraphReference)
    XAnalyserProvider.Analysis(Object, GraphReference)
    XAnalyserProvider.Analysis<TAnalysis>(Object, GraphReference)
    XDescriptorProvider.Describe(Object)
    XDescriptorProvider.HasDescriptor(Object)
    XDescriptorProvider.Descriptor(Object)
    XDescriptorProvider.Descriptor<TDescriptor>(Object)
    XDescriptorProvider.Description(Object)
    XDescriptorProvider.Description<TDescription>(Object)
    Icons.Icon(Object)
    EditorUnityObjectUtility.GetPrefabDefinition(Object)
    EditorUnityObjectUtility.IsPrefabInstance(Object)
    EditorUnityObjectUtility.IsPrefabDefinition(Object)
    EditorUnityObjectUtility.IsConnectedPrefabInstance(Object)
    EditorUnityObjectUtility.IsDisconnectedPrefabInstance(Object)
    EditorUnityObjectUtility.IsSceneBound(Object)
    Cloning.Clone(Object, ICloner, Boolean)
    Cloning.Clone<T>(T, ICloner, Boolean)
    Cloning.CloneViaFakeSerialization(Object)
    Cloning.CloneViaFakeSerialization<T>(T)
    ConversionUtility.IsConvertibleTo(Object, Type, Boolean)
    ConversionUtility.IsConvertibleTo<T>(Object, Boolean)
    ConversionUtility.ConvertTo(Object, Type)
    ConversionUtility.ConvertTo<T>(Object)
    TypeUtility.ToShortString(Object, Int32)
    Serialization.CloneViaSerialization<T>(T, Boolean)
    Serialization.CloneViaSerializationInto<TSource, TDestination>(TSource, ref TDestination, Boolean)
    Serialization.Serialize(Object, Boolean)
    ComponentHolderProtocol.IsComponentHolder(Object)
    ComponentHolderProtocol.GameObject(Object)
    ComponentHolderProtocol.AddComponent<T>(Object)
    ComponentHolderProtocol.GetOrAddComponent<T>(Object)
    ComponentHolderProtocol.GetComponent<T>(Object)
    ComponentHolderProtocol.GetComponentInChildren<T>(Object)
    ComponentHolderProtocol.GetComponentInParent<T>(Object)
    ComponentHolderProtocol.GetComponents<T>(Object)
    ComponentHolderProtocol.GetComponentsInChildren<T>(Object)
    ComponentHolderProtocol.GetComponentsInParent<T>(Object)
    ComponentHolderProtocol.GetComponent(Object, Type)
    ComponentHolderProtocol.GetComponentInChildren(Object, Type)
    ComponentHolderProtocol.GetComponentInParent(Object, Type)
    ComponentHolderProtocol.GetComponents(Object, Type)
    ComponentHolderProtocol.GetComponentsInChildren(Object, Type)
    ComponentHolderProtocol.GetComponentsInParent(Object, Type)
    LinqUtility.Yield<T>(T)
    UnityObjectUtility.IsDestroyed(Object)
    UnityObjectUtility.IsUnityNull(Object)
    UnityObjectUtility.ToSafeString(Object)
    UnityObjectUtility.ToSafeString(Object)
    UnityObjectUtility.AsUnityNull<T>(T)
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 11 March 2021