Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Bug Excessive/Endless Bake Times

Discussion in 'Navigation' started by DrewofDonuts, Mar 26, 2024.

  1. DrewofDonuts

    DrewofDonuts

    Joined:
    Apr 23, 2020
    Posts:
    28
    Unity 2023.1.20 - HDRP.

    I have a 25 x 20 flat terrain with a couple of layers. It took 10 minutes to bake a NavMesh surface (added NavMeshSurface as a child to Terrain. Adding as a component failed to bake at all). I tried to Play the scene in the editor, and after 10 minutes of loading, gave up.
    Trying to close or open Unity gracefully took over 15 minutes as well once NavMesh is baked into the scene.

    *Update*
    I checked the size of the NavMeshSurface size - it's over 200mb. I'm assuming something is wrong here.

    This is practically a fresh project, and my desktop is current ( Ryzen 7 7700X, 32 GB memory, RTX 3070 Ti).

    How can I address this issue?

    Resolved:

    It was baking ALL layers, including the two character game objects in the scene. Intuitively, you'd think the layers only apply to whatever game object its child objects the NavMeshSurface component is associated with, but apparently not.
     
    Last edited: Mar 26, 2024
  2. bgebitekin

    bgebitekin

    Joined:
    Dec 22, 2020
    Posts:
    11
    Isn't there a setting in NavMeshSurface that specifically tells it to collect all objects vs. only child objects?