Unity Engine documentationScript ReferenceUnityEngineUnityEngine.AINavMeshPathClearCorners()Erase all corner points from path.Read time 1 minuteLast updated 10 days agoDefinition Type: Method Namespace: UnityEngine.AI Assembly: UnityEngine.AIModule public void ClearCorners()