Method NextEntityIndex
NextEntityIndex(out Int32)
Iterates through the given ArchetypeChunk, retrieving the index of the next available entity. This function will pass over any entities whose components implement IEnableableComponent and are currently disabled.
Declaration
public bool NextEntityIndex(out int nextIndex)
Parameters
Type | Name | Description |
---|---|---|
Int32 | nextIndex | The index of the next available entity in the ArchetypeChunk. when the function returns false, this result is undefined. |
Returns
Type | Description |
---|---|
Boolean | whether or not there is another available index within the ArchetypeChunk, based on the last available iteration |