Unity Default NavMesh question

I’ve been using the default NavMesh for the RTS game I’m working on.

Using NavMeshArea I’d like to create a certain zone that has the following properties depending the agent that crosses it:

  • An agent of a certain type can and will take this path as he can use it as a shortcut.

  • Any other agent needs to avoid this path as it basically kills them.

  • The NavMeshArea should change dinamically upon the placing of this shortcut.

Is it possible? I’m not asking about dynamic baking because I know it can’t be done, I ask about changing the NavMeshArea.

If so, how can I set the NavMeshArea and the NavMeshAgents to do this?

I don’t know if this was read but we changed over to Aron Granberg AStar.

The migrating process was nightmarish and we still find little things to change now and then, but it works wonders and solves our problems!