Search Unity

"Resume" and "SetDestination" can only be called on an active agent that has been placed on a NavMes

Discussion in 'Navigation' started by huseyinbaba58, Sep 19, 2020.

  1. huseyinbaba58

    huseyinbaba58

    Joined:
    Feb 12, 2020
    Posts:
    146
    I'm developing a game. I used the NavMeshAgent component to get the animated game object containing the Sprite Renderer.
    I think NavmeshAgent is not enabled for Sprite Renderer. I downloaded the NavMesh package from GitHub account, but Navigation AI can detect Mesh Renderer and Terrain. I want the navigation to detect Sprite Renderer, how can I do that?
     
    Last edited: Sep 19, 2020
  2. radiantboy

    radiantboy

    Joined:
    Nov 21, 2012
    Posts:
    1,633
    did u bake the nav mesh?