Class LoopUnit
Inherited Members
Namespace: Unity.VisualScripting
Syntax
public abstract class LoopUnit : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable
Properties
body
The action to execute at each loop.
Declaration
[DoNotSerialize]
public ControlOutput body { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
enter
The entry point for the loop.
Declaration
[DoNotSerialize]
public ControlInput enter { get; }
Property Value
Type | Description |
---|---|
ControlInput |
exit
The action to execute after the loop has been completed or broken.
Declaration
[DoNotSerialize]
public ControlOutput exit { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Loop(Flow)
Declaration
protected abstract ControlOutput Loop(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
ControlOutput |
LoopCoroutine(Flow)
Declaration
protected abstract IEnumerator LoopCoroutine(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
IEnumerator |