Class ScriptMachine
Inheritance
ScriptMachine
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/Script Machine")]
[RequireComponent(typeof(Variables))]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.visualscripting@latest/index.html?subfolder=/manual/vs-graphs-machines-macros.html")]
[RenamedFrom("Bolt.FlowMachine")]
[RenamedFrom("Unity.VisualScripting.FlowMachine")]
public sealed class ScriptMachine : EventMachine<FlowGraph, ScriptGraphAsset>, ISerializationCallbackReceiver, IEventMachine, IMachine, IGraphRoot, IGraphNester, IGraphParent, IAotStubbable
Fields
UseNewInterpreter
Declaration
public bool UseNewInterpreter
Field Value
Type | Description |
---|---|
Boolean |
Properties
IsUsingNewRuntime
Declaration
protected override bool IsUsingNewRuntime { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Unity.VisualScripting.EventMachine<Unity.VisualScripting.FlowGraph, Unity.VisualScripting.ScriptGraphAsset>.IsUsingNewRuntime
Methods
DefaultGraph()
Declaration
public override FlowGraph DefaultGraph()
Returns
Type | Description |
---|---|
FlowGraph |
Overrides
Unity.VisualScripting.Machine<Unity.VisualScripting.FlowGraph, Unity.VisualScripting.ScriptGraphAsset>.DefaultGraph()
OnDestroy()
Declaration
protected override void OnDestroy()
Overrides
Unity.VisualScripting.EventMachine<Unity.VisualScripting.FlowGraph, Unity.VisualScripting.ScriptGraphAsset>.OnDestroy()
OnDisable()
Declaration
protected override void OnDisable()
Overrides
Unity.VisualScripting.EventMachine<Unity.VisualScripting.FlowGraph, Unity.VisualScripting.ScriptGraphAsset>.OnDisable()
OnEnable()
Declaration
protected override void OnEnable()
Overrides
Unity.VisualScripting.EventMachine<Unity.VisualScripting.FlowGraph, Unity.VisualScripting.ScriptGraphAsset>.OnEnable()
OnInstantiateWhileEnabled()
Declaration
protected override void OnInstantiateWhileEnabled()
Overrides
Unity.VisualScripting.EventMachine<Unity.VisualScripting.FlowGraph, Unity.VisualScripting.ScriptGraphAsset>.OnInstantiateWhileEnabled()
OnUninstantiateWhileEnabled()
Declaration
protected override void OnUninstantiateWhileEnabled()
Overrides
Unity.VisualScripting.EventMachine<Unity.VisualScripting.FlowGraph, Unity.VisualScripting.ScriptGraphAsset>.OnUninstantiateWhileEnabled()
ShowData()
Declaration
[ContextMenu("Show Data...")]
protected override void ShowData()
Overrides
Update()
Declaration
protected override void Update()
Overrides
Unity.VisualScripting.EventMachine<Unity.VisualScripting.FlowGraph, Unity.VisualScripting.ScriptGraphAsset>.Update()