Class StateUnit
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[TypeIcon(typeof(StateGraph))]
[UnitCategory("Nesting")]
public sealed class StateUnit : NesterUnit<StateGraph, StateGraphAsset>, INesterUnit, IUnit, IGraphElementWithDebugData, IGraphNesterElement, IGraphParentElement, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IGraphNester, IGraphParent
Constructors
StateUnit()
Declaration
public StateUnit()
StateUnit(StateGraphAsset)
Declaration
public StateUnit(StateGraphAsset macro)
Parameters
Type | Name | Description |
---|---|---|
StateGraphAsset | macro |
Properties
start
The entry point to start the state graph.
Declaration
[DoNotSerialize]
public ControlInput start { get; }
Property Value
Type | Description |
---|---|
ControlInput |
started
The action to execute after the state graph has been started.
Declaration
[DoNotSerialize]
public ControlOutput started { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
stop
The entry point to stop the state graph.
Declaration
[DoNotSerialize]
public ControlInput stop { get; }
Property Value
Type | Description |
---|---|
ControlInput |
stopped
The action to execute after the state graph has been stopped.
Declaration
[DoNotSerialize]
public ControlOutput stopped { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
Methods
DefaultGraph()
Declaration
public override StateGraph DefaultGraph()
Returns
Type | Description |
---|---|
StateGraph |
Overrides
Unity.VisualScripting.NesterUnit<Unity.VisualScripting.StateGraph, Unity.VisualScripting.StateGraphAsset>.DefaultGraph()
Definition()
Declaration
protected override void Definition()
Overrides
WithStart()
Declaration
public static StateUnit WithStart()
Returns
Type | Description |
---|---|
StateUnit |