Search Unity

SOLVED :: 5.5.0f3 Missing NavMeshAgent Reference

Discussion in 'Navigation' started by GamingTyrantStudios, Dec 6, 2016.

  1. GamingTyrantStudios

    GamingTyrantStudios

    Joined:
    Mar 4, 2016
    Posts:
    5
    Title explains my problem. The NavMeshAgent component is in the component list and I can assign to objects but I cannot reference anything with NavMeshAgent in scripting. Is anyone else having a problem or does this sound like a bad install when I made the new project?
     
  2. GamingTyrantStudios

    GamingTyrantStudios

    Joined:
    Mar 4, 2016
    Posts:
    5
    Was at work when I posted and just to confirm yes I am an Idiot but I have fixed it.
     
  3. svesce

    svesce

    Joined:
    Jan 27, 2016
    Posts:
    1
    Had the same issue. It looks like with 5.5, NavMesh stuff got tucked into UnityEngine.AI so had to add "using UnityEngine.AI" so the references came through.
     
    Last edited: Dec 10, 2016
  4. GamingTyrantStudios

    GamingTyrantStudios

    Joined:
    Mar 4, 2016
    Posts:
    5
    Yep that was it! I actually had it working fine on another project but haven't messed with NavMeshAgent in a while.