Search Unity

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

Question is there anyway to make this more efficient or is it technically the limitation of new navmesh?

Discussion in 'AI & Navigation Previews' started by arielleyaple, Oct 25, 2022.

  1. arielleyaple

    arielleyaple

    Joined:
    Oct 25, 2022
    Posts:
    1
    Runtime baking
    NavmeshSurface follows the AI latest position. i set my NavMeshSurface to only use the range of the AI "Collect Objects set to Volume"
    but having more than 3 its slow to generate even on a small area around the AI


    Code (CSharp):
    1.     [SerializeField]
    2.     public NavMeshSurface[] navMeshSurfaces;
    3.     private void FixedUpdate()
    4.     {
    5.             navMeshSurfaces.RemoveData();
    6.             navMeshSurfaces.BuildNavMesh();
    7.     }
    or some sort of background mode.
    or coroutines is the only option?