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 id.unity.com 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.

The navmesh may not be generated properly as the vertical dimension of your Scene is too large.

Discussion in 'Unity 5 Pre-order Beta' started by bmccall1, Oct 27, 2014.

  1. bmccall1

    bmccall1

    Joined:
    Jul 28, 2013
    Posts:
    120
    I tried to bake a navmesh in my game and got the following message.

    The navmesh may not be generated properly as the vertical dimension of your Scene is too large. Try limiting the vertical size to less than 1856.0.
    UnityEditor.DockArea:OnGUI()

    My game DOES have several separate terrains that are pretty far apart from each other. But its done this way on purpose, because my game is open world, with no load times. Anyway to fix this?

    Navmeshagents placed on the navmesh do not function.
     
  2. Mikko Mononen

    Mikko Mononen

    Unity Technologies

    Joined:
    Sep 6, 2013
    Posts:
    14
    Hi,
    There's two factors which affect this message, agent size (and voxel size), and the vertical dimensions of the level.
    - What is the vertical extents of your level, that is the difference between the highest and lowest point?
    - What bake settings are you using?
     
  3. bmccall1

    bmccall1

    Joined:
    Jul 28, 2013
    Posts:
    120
    Hi Mikko, I disabled one of the traversable navmeshes from high up and below so its pretty flat now. The error went away, but I still keep getting the

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


    http://baffledmedia.com/images/navmeshproblem.jpg
     

    Attached Files:

  4. Mikko Mononen

    Mikko Mononen

    Unity Technologies

    Joined:
    Sep 6, 2013
    Posts:
    14
    Hi,
    Your bake agent size looks very small compared to its' actual size. I recommend to set it to something that represents the agent dimensions (i.e. 0.4). The baking voxel size is automatically adjusted based on the agent size, so this is causing some of the trouble.

    You can click on the error to select the GameObject that is causing the trouble.
    Can you also show how the inspector looks like for the navmesh agent?
     
  5. bmccall1

    bmccall1

    Joined:
    Jul 28, 2013
    Posts:
    120
    Here's the image of the inspector. I will try and reset the agent size. The odd thing, is this USED to work. :(
     

    Attached Files:

  6. bmccall1

    bmccall1

    Joined:
    Jul 28, 2013
    Posts:
    120
    OMG, I changed the agent size and it works! You rock!
     
  7. Mikko Mononen

    Mikko Mononen

    Unity Technologies

    Joined:
    Sep 6, 2013
    Posts:
    14
    Excellent!