I’m trying to set a predefined path to a NavMeshAgent but cannot set the corners variable of NavMeshPath when creating, why is this a limitation? Please fix this and make NavMeshPath accept Vector3 array in it’s constructor.
var waypoints = new Vector3[] { Vector3.zero, new Vector3(3f, 0f, 0f), new Vector3(2f, 0f, 2f) };
NavMeshPath path = new NavMeshPath() { corners = waypoints, status = NavMeshPathStatus.PathComplete }; // this is not supported for some reason...
navMeshAgent.SetPath(path);