Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Pathfinding for 2D : Failed to Create Agent Because it's Not Close Enough to the NavMesh

Discussion in 'Navigation' started by Kalita2127, Sep 26, 2015.

  1. Kalita2127

    Kalita2127

    Joined:
    Dec 6, 2014
    Posts:
    265
    Hi guys.. so I was trying to make pathfinding 2D for my tower defense game.. I found this awesome tutorial on youtube

    This tutorial shows some tricks to make pathfinding on 2D. It uses cube position as an agent and the sprite position refer to it.
    I don't have idea how to instantiate both sprite and the agent(cube) to have the same position while they are child of the different parents.
    And when I tried to instantiate the agent it gives me a warning "Failed to Create Agent Because it's Not Close Enough to the NavMesh", but I already matched the agent position to the instantiated object(agent)