NavMesh navMesh = new NavMesh(); navMesh.CreateMesh(); navMesh.CalculateTriangulation();
// make changes to the NavMesh navMesh.ModifyMesh(); // recalculate the triangulation navMesh.CalculateTriangulation();Package library: UnityEngine.AI The CalculateTriangulation method is part of the NavMesh class in the UnityEngine.AI package library in C#.