Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

what does it means?

Discussion in 'Navigation' started by kondor, Jun 28, 2015.

  1. kondor

    kondor

    Joined:
    Jun 18, 2013
    Posts:
    48
    HI
    when I start the game I got this warning:
    "SetDestination" can only be called on an active agent that has been placed on a NavMesh.
    UnityEngine.NavMeshAgent:SetDestination(Vector3)
    AI:Update() (at Assets/AI.cs:16)
    the object didnt move and I dont know what the problem is'everything is all right
    maybe the bake doesnt go well?because I dont see the blue map on the object after the bakeing
    thx for the help
     
  2. superpig

    superpig

    Quis aedificabit ipsos aedificatores? Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,215
    If you're not seeing the blue overlay after baking then yeah that sounds like you didn't actually successfully bake any navmesh. Are you sure you remembered to set your walls and floors to be Navmesh Static, and that the bake settings are appropriate for the size of your scene?
     
  3. kondor

    kondor

    Joined:
    Jun 18, 2013
    Posts:
    48
    thx for the help,I solved it by as u said put the object to be Navmesh Static
     
    superpig likes this.