Class ForEach
Loops over each element of a collection.
Inheritance
object
ForEach
Assembly: solution.dll
Syntax
[UnitTitleAttribute]
[UnitCategory]
[UnitOrderAttribute]
public class ForEach : LoopUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
collection
The collection over which to loop.
Declaration
[DoNotSerializeAttribute]
public ValueInput collection { get; }
Property Value
currentIndex
The current index of the loop.
Declaration
[DoNotSerializeAttribute]
[PortLabelAttribute]
public ValueOutput currentIndex { get; }
Property Value
currentItem
The current item of the loop.
Declaration
[DoNotSerializeAttribute]
[PortLabelAttribute]
public ValueOutput currentItem { get; }
Property Value
currentKey
The key of the current item of the loop.
Declaration
[DoNotSerializeAttribute]
[PortLabelAttribute]
public ValueOutput currentKey { get; }
Property Value
dictionary
Declaration
[SerializeAttribute]
[InspectableAttribute]
[UnitHeaderInspectableAttribute]
[InspectorToggleLeftAttribute]
public bool dictionary { get; set; }
Property Value
Methods
Definition()
Declaration
protected override void Definition()
Overrides
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