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.

Difference in prebaked and runtime baked NavMeshSurface.

Discussion in 'AI & Navigation Previews' started by seltar_, Mar 26, 2017.

  1. seltar_

    seltar_

    Joined:
    Apr 16, 2015
    Posts:
    15
    I have a terrain with a water plane.
    The water plane has a NavMeshModifierVolume attached.

    When baking the NavMeshSurface on the terrain in the editor it slices things nicely
    Screen Shot 2017-03-26 at 04.49.31.png

    but misses lots of spots when used at runtime.
    Screen Shot 2017-03-26 at 04.48.00.png
    Is this intended functionality, is it a bug or is there something I'm missing?
     
    Last edited: Mar 27, 2017
  2. seltar_

    seltar_

    Joined:
    Apr 16, 2015
    Posts:
    15
    My solution ended up being to append an offset to the sourcesBounds in the NavMeshSource.Bake function before baking so i could exclude everything beneath the water.