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

Error using NavMeshSurface

Discussion in 'Editor & General Support' started by dienat, Jan 20, 2019.

  1. dienat

    dienat

    Joined:
    May 27, 2016
    Posts:
    417
    I added the NavMeshSurface to a gameobject which contains all items in scene, i press bake in the component and shows the navmesh in blue, my navmeshagent uses the same layer as the navmeshsurface but when i try to use the CalculatePath method it gives me the error ""CalculatePolygonPath" can only be called on an active agent that has been placed on a NavMesh.". I tried to use agent.Warp before that but it doesnt work anyways, the agent is just on the navmesh without any problems.
    I tried the Drop plank demo scene in the NavMeshComponents package and it works fine, dont know why it doesnt work in my scene
    With the normal baked navmesh it works fine but not with the NavMeshSurface, i use Unity 2018.2
     
  2. mervenurr

    mervenurr

    Joined:
    Nov 20, 2018
    Posts:
    1
    'H ! have you corrected the error?
     
  3. dienat

    dienat

    Joined:
    May 27, 2016
    Posts:
    417
    Yes, but dont remember what caused the problem