Set Current Index
Last updated
Last updated
Set Current Index selects an entry item by using its index. It accepts a List Object and an Index
value and selects an entry item corresponding to the Index
value.
The index count starts from zero, which means that the Index
of the last entry item of the List Object is equal to the total number of entry items minus one ("sum of entries" - 1). This follows from array-based indexing where the index of the first entry is 0.
Scope: Scene, Function, Prefab.
Array Indexing on Wikipedia.
Index Mapping on Wikipedia.
Attribute | Type | Description |
---|---|---|
Attribute | Type | Description |
---|---|---|
Input | Type | Description |
---|---|---|
Output | Type | Description |
---|---|---|
Object
ObjectID
This represents the List Object, from which an entry item can be selected by its Index
, if one is not provided in the Object ID
Socket.
Index
Int
The default Index
value if no value is provided to the input Index
Socket.
Pulse Input (►)
Pulse
A standard Input Pulse, to trigger the execution of the Node.
Object ID
ObjectID
The List Object from which an entry item can be selected by using its index.
Index
Int
The index of the entry item you wish to select.
Pulse Output (►)
Pulse
A standard Output Pulse, to move onto the next Node along the Logic Branch, once this Node has finished its execution.