Method NextEntityIndex
NextEntityIndex(out int)
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 |
---|---|---|
int | nextIndex | The index of the next available entity in the ArchetypeChunk. when the function returns false, this result is undefined. |
Returns
Type | Description |
---|---|
bool | whether or not there is another available index within the ArchetypeChunk, based on the last available iteration |