Equivalent to AgentID?

  • A* version: 538
  • Unity version: 22.3.62

In Unity an agent can only be one type.
In Astar an agent has a mask which gives it access to multiple navmeshes at the same time.

  1. how does it chose which navmesh to ride on, if multiple navmesh graphs exist in the same location (example: large and small enemy)
  2. what’s the equivalent to agentID?

It chooses the closest graph.

Assuming you mean agentTypeID, there’s no direct equivalent. The closest would be the graph mask.

1 Like