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 Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    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


    Oct 25, 2022
    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?