Search Unity

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

Question Terrain Updates and Navmesh

Discussion in 'AI & Navigation Previews' started by polimerjones, Oct 14, 2022.

  1. polimerjones

    polimerjones

    Joined:
    Jun 11, 2018
    Posts:
    5
    I am trying to work with Terrains and update the terrain at runtime but I also need the navmesh to update as well.

    I have setup the terrain as a navmeshsurface so that I can call buildnavmesh on it when desired, but the building takes enough time to cause lag. I looked into multithreading but many of the functions when building need to be ran on the main thread so its not possible as far as I can tell.

    If anyone has any suggestions I would appreciate it.