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

isOnOffMeshLink always return false. Cannot drop from ledge

Discussion in 'Navigation' started by ClosingTime, Jan 8, 2020.

  1. ClosingTime

    ClosingTime

    Joined:
    Nov 23, 2016
    Posts:
    241
    I used the code presented here https://docs.unity3d.com/540/Documentation/ScriptReference/NavMeshAgent.CompleteOffMeshLink.html
    to try and have my player navmeshagent drop from the ledge of a platform.
    However, the isOnOffMeshLink always return false.
    As if it doesn't recognize any auto generated baked offmeshlink.
    It doesn't even seem to detect the manual generated offmeshlink component, but I don't see any indication that this component has a visual representation in the editor even though I put to GameObjects as start and end for it.

    Why it doesn't recognize any offmeshlink? There doesn't seem to be a lot of information on this.
    I am using Unity 2019.3.0f3