Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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.