Search Unity

"SetDestination" can only be called on an active agent that has been placed on a NavMesh.

Discussion in 'Navigation' started by sponsford, Sep 9, 2021.

  1. sponsford

    sponsford

    Joined:
    Aug 24, 2021
    Posts:
    1
    upload_2021-9-9_16-24-11.png
    I am testing the navigation out. I have baked my NavMesh at runtime and I have movement working on a simple capsule object. I made a copy of the capsule and placed it next to the existing one. The copy generates the error but the original still works. They are both set at the same height, what is going on?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,689
    Usually this is because you are either:

    a) telling a Prefab reference to go somewhere (eg, not what is in the scene)
    b) telling a disabled GameObject to go somewhere