Class ForEach
Loops over each element of a collection.
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[UnitDisplay("For Each Loop")]
[UnitCategory("Flow", 21)]
public class ForEach : LoopUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged, ISerializationCallbackReceiver
Properties
collection
The collection over which to loop.
Declaration
[DoNotSerialize]
[UnitPortDisplay(showLabel = false)]
public ValueInput collection { get; }
Property Value
Type | Description |
---|---|
ValueInput |
currentIndex
The current index of the loop.
Declaration
[DoNotSerialize]
[UnitPortDisplay("Index")]
public ValueOutput currentIndex { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
currentItem
The current item of the loop.
Declaration
[DoNotSerialize]
[UnitPortDisplay("Item")]
public ValueOutput currentItem { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
currentKey
The key of the current item of the loop.
Declaration
[DoNotSerialize]
[UnitPortDisplay("Key")]
public ValueOutput currentKey { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
dictionary
Declaration
[Serialize]
[Inspectable]
[UnitSettingDisplay("Dictionary")]
[InspectorToggleLeft]
public bool dictionary { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Loop(Flow)
Declaration
protected override ControlOutput Loop(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
ControlOutput |
Overrides
LoopCoroutine(Flow)
Declaration
protected override IEnumerator LoopCoroutine(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
IEnumerator |