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. The 2022.2 beta is now available for testing. To find out what's new, have a look at our 2022.2 feature highlights.
    Dismiss Notice
Dismiss Notice
Submit bug reports tagged with #Beta2022Win_Unity when you encounter unknown issues while testing the 2022.2 betas for a chance to win a year of Unity Pro. For more information, have a look at our Beta Sweepstakes Announcement.

Runtime baking not working properly (BuildNavMesh())

Discussion in 'AI & Navigation Previews' started by Stardog, Apr 28, 2017.

  1. Stardog

    Stardog

    Joined:
    Jun 28, 2010
    Posts:
    1,787
    BuildNavMesh.gif

    The tiles are children of a GameObject with a NavMeshSurface component. Everytime a tile is placed, BuildNavMesh is called, but it doesn't seem to update everything, even when making the voxel size smaller.

    Each tile is 1x1 unit. It will rarely put a mesh on a 1x1 lone tile, and you can see at the beginning, it ALWAYS waits until 3 or more tiles are down before generating.

    Edit: Scaling the tile up to 2x2 makes it generate every time, but why can't it do 1x1?
     
  2. advo

    advo

    Joined:
    Apr 6, 2016
    Posts:
    14
    perhaps your NavMesh agent settings need to be tweaked, perhaps its the agent width / radius that needs to be made smaller so that it can generate a mesh even on a 1x1 tile.
     
unityunity