Pre-placed agents when graph scan happens

  • A* version: 5.3.8
  • Unity version: 6.1.9
  • Recast mesh generation

I already have agents on the ground when the graph is scanned and so it puts holes in the graph where they start. Is there a way to not include them when the scan happens, or do I just have to wait for it and then spawn the agents in?

You’ll want to set the agents to a specific layer, maybe “Agents” and then set the obstacle layer to exclude that layer, Agents. In a GridGraph this is ‘Obstacle Layer Mask’ and in a RecastGraph this is ‘Layer Mask’. Should be good from there! :slight_smile:

Thanks.
Will give that a try.