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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    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.