Search Unity

Bug ? Unity 2018.4.6 any agent cloned isn´t navmesh

Discussion in 'Navigation' started by IndieFist, Aug 25, 2019.

  1. IndieFist

    IndieFist

    Joined:
    Jul 18, 2013
    Posts:
    520
    Code (CSharp):
    1. "Stop" can only be called on an active agent that has been placed on a NavMesh.
    2. UnityEngine.AI.NavMeshAgent:set_isStopped(Boolean)
    I can´t add more agent´s in my scene.
    Any agent working, i clone it, re-bake map and error.
    I have search about this error in google and i have do it all suggestion i have found, and still same problem.
    Maybe the Unity version?
     
    Last edited: Aug 25, 2019
  2. Yandalf

    Yandalf

    Joined:
    Feb 11, 2014
    Posts:
    491
    Gonna need some more information here. How exactly are you cloning your agents?
    Also, why do you rebake your map after cloning an agent? That should not be necessary.
     
    IndieFist likes this.
  3. IndieFist

    IndieFist

    Joined:
    Jul 18, 2013
    Posts:
    520
    Well, i have tryed all what can i do and finding more threads with same problem in this forum.
    Finally i just have found a solution one minutes ago, i have re-import all assets, clean my bake and re-bake and it works, i dont know why.