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

How do you bake a NavMesh by specific layers with the latest version of NavMeshComponents?

Discussion in 'Navigation' started by kirbyderby2000, May 12, 2020.

  1. kirbyderby2000

    kirbyderby2000

    Joined:
    Apr 28, 2017
    Posts:
    35
    The NavMeshSurface previously had the "Clear" / "Bake" buttons right there in the inspector of the component. However, the buttons are gone in the latest version of the NavMeshComponents. I understand that I can find NavMesh baking options in "AI->Navigation", however it doesn't offer the NavMeshSurface option to bake by layers. With that said, how do you bake navmesh surfaces with the options the NavMeshSurface component previously offered (specifically baking by layers)?

    Untitled-1.png Untitled-2.png Untitled-3.png
     
  2. Harsha_U

    Harsha_U

    Joined:
    Oct 31, 2020
    Posts:
    3
    Hii, if someone wants to bake Navmesh by a specific layer (like ground and not building floors and roof tops), you simple clear the baked mesh and uncheck the static button on what you don't want the navmesh to be baked on and then bake again. You should see the new baked navmesh has not applied for the specific layer you wanted to be baked on.