I have a scene in Unity where I am using Unity's navigation functionalities to calculate a path and have a NavMeshAgent to walk it. I must make slight modifications to the path then reassign it to the agent.
Now, Unity docs say clearly that NavMeshAgent.path can be set pragmatically (not read only).
See here: https://docs.unity3d.com/Documentation/ScriptReference/NavMeshAgent-path.html
So it's possible to create a new NavMeshPath and assign it to the NavMeshAgent.
Unfortunately for me, the NavMeshPath doesn't allow you to assign an array of Vector3 in any way as the corners property is Read Only. What the...
I need a workaround for this. Any help appreciated!
Thank you for your time.