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 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    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?