Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Check if navmesh link is being used?

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

  1. Terminus001

    Terminus001

    Joined:
    Nov 1, 2015
    Posts:
    121
    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