Function AgentIndex.TryGetIndex

TryGetIndex (ref NativeArray<AgentIndex> agentDataVersions, out int index)

Returns the index of the agent in the simulation's data arrays, if the agent exists.

Public Readonly
TryGetIndex (refSimulatorBurst.AgentData agentData, out int index)

Returns the index of the agent in the simulation's data arrays, if the agent exists.

Public Readonly