Class For
Loops between a first and last index at a specified step.
Assembly: solution.dll
Syntax
[UnitTitleAttribute]
[UnitCategory]
[UnitOrderAttribute]
public sealed class For : LoopUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
currentIndex
The current index of the loop.
Declaration
[PortLabelAttribute]
[DoNotSerializeAttribute]
public ValueOutput currentIndex { get; }
Property Value
firstIndex
The index at which to start the loop (inclusive).
Declaration
[PortLabelAttribute]
[DoNotSerializeAttribute]
public ValueInput firstIndex { get; }
Property Value
lastIndex
The index at which to end the loop (exclusive).
Declaration
[PortLabelAttribute]
[DoNotSerializeAttribute]
public ValueInput lastIndex { get; }
Property Value
step
The value by which the index will be incremented (or decremented, if negative) after each loop.
Declaration
[DoNotSerializeAttribute]
public ValueInput step { get; }
Property Value
Methods
Definition()
Declaration
protected override void Definition()
Overrides
IsStepValueZero()
Declaration
public bool IsStepValueZero()
Returns
Loop(Flow)
Declaration
protected override ControlOutput Loop(Flow flow)
Parameters
| Type |
Name |
Description |
| Flow |
flow |
|
Returns
Overrides
LoopCoroutine(Flow)
Declaration
protected override IEnumerator LoopCoroutine(Flow flow)
Parameters
| Type |
Name |
Description |
| Flow |
flow |
|
Returns
| Type |
Description |
| IEnumerator |
|
Overrides
Implements
IDisposable
Extension Methods