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 have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Navmesh bakes partially,

Discussion in 'Navigation' started by TheHammer1, Aug 3, 2019.

  1. TheHammer1

    TheHammer1

    Joined:
    Oct 15, 2015
    Posts:
    25
    The Problem
    I have a map containing a terrain. On it are several boxes which have a mesh renderer, mesh filter, and box collider.

    When I bake the map, it only bakes the terrain. The boxes are ignored entirely. Unity bakes the terrain as if the boxes were never there. The terrain shows up walkable but the boxes aren't, despite being accessible.

    Additional Information
    I also have planes I want the agent to walk on, but they are not rendered. There are also not rendered (invisible) collider boxes too. Can they baked too?
     
  2. mistergreen2016

    mistergreen2016

    Joined:
    Dec 4, 2016
    Posts:
    226
    Move your boxes on the same layer as the terrain to have it seen as the terrain.
     
  3. TheHammer1

    TheHammer1

    Joined:
    Oct 15, 2015
    Posts:
    25
    Both the terrain and the boxes are on Layer 9, still doesn't bake?
     
  4. mistergreen2016

    mistergreen2016

    Joined:
    Dec 4, 2016
    Posts:
    226
    screen capture that terrain, boxes and inspector of the bake parameters?
    Try using the Navmesh surface component. It's a separate download from github.
     
  5. TheHammer1

    TheHammer1

    Joined:
    Oct 15, 2015
    Posts:
    25
    Here is a link to the screen captures.
     
  6. mistergreen2016

    mistergreen2016

    Joined:
    Dec 4, 2016
    Posts:
    226
    screen of the navmesh in the editor? My guess is the box is too high.

    Try using the navmesh surface component.
     
  7. TheHammer1

    TheHammer1

    Joined:
    Oct 15, 2015
    Posts:
    25
    The components worked, thanks :)