ProtoFlux:GetAt
More actions
The GetAt node takes in a Collection and the index to retrieve an element from. If Index is out of range or less than 0, it will return null for any Object type or some zero value for any value type (0 for floats, ints, [0, 0, 0] for float3s, false for bools etc).
Compatible types: any IReadOnlyList, SyncArray, SyncFieldList, SyncRefList.
Incompatible types: any IDictionary type. If you're looking to get a value by its key in a dictionary, see GetKey.
Acquiring This Node

When selecting this node in a ProtoFlux Browser, it will present 4 options. Pick the appropriate one. Note that Object and Value refer to ProtoFlux Objects (string, Slot, etc) and Value refers to ProtoFlux values (float, int, bool, etc).
Inputs
Collection (IList)
The collection to find the element within.
Index (Int)
The position of the element to locate within the list. (min: 0, max: Count of collection minus 1)
Outputs
* (Generic)
The element at the specified index of the collection.