Search Unity

  1. The 2021.2 beta is now available. To find out what's new, have a look at our 2021.2 beta blog post.
    Dismiss Notice
  2. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  3. Dismiss Notice

NavMeshLink bug: OffMeshLinkData.offMeshLink returns null

Discussion in 'AI & Navigation Previews' started by Candescence, Jul 11, 2018.

  1. Candescence


    Aug 26, 2014
    While there has already been an issue filed on this in the repository, it's also an issue that's gone unnoticed and unaddressed by the Unity devs for months and directly impacts the usability of NavMeshLinks.

    If you want to get, say, the area of an NavMeshLink, you're basically up a creek without a paddle. As far as I can tell from looking at the code, it seems Unity's navigation system currently doesn't take in NavMeshLink data as manually-created off mesh link data.

    So, if you're planning on using NavMeshLink data in your code, don't use them until this bug is fixed, use the old OffMeshLink script instead. It's more of a pain, however.

    I love the new Nav Mesh Components, and it pains me to have to highlight this problem, but it's a big oversight that really needs to be addressed.
    Last edited: Jul 11, 2018
    yokeshram and Noisecrime like this.