Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Check if navmesh link is being used?

Discussion in 'Navigation' started by AndorfTheWhite, Jul 18, 2020.

  1. AndorfTheWhite


    Nov 1, 2015
    Hi everyone,

    I noticed that NavMeshLinks components (from the Unity NavMeshComponents library) only allow a single agent at a time to travel through them, which sucks.

    Is there a way to check if a link is full (an agent is travelling through it) so that I can tell my other agents to recalculate the path and use a different navmeshlink to reach the destination?

    Does NavMeshLinkInstance.owner or NavMeshLinkInstance.valid do anything like that?

    Thanks in advance