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.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

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!