Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.

    Read our full announcement for more information and let us know if you have any questions.

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


    Dec 6, 2014
    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)