Hey Every One,
I am having a issue that i spawn a gameobject through UI Button and position it with raycast on mouse movement and it has Navmesh Agent on it.
Also my ground surface has navmesh baked on it and have some NotWalkable Areas.
All is good except that when i spwn gameobject while passing over NotWalkable area then it start its working from back of the NotWalkable area not from mouse position.
Please answer my question . I search almost two days but cant find anything.
Thanks in Advance.
The “Not Walkable” area type is special because it carves a hole in the NavMesh, it doesn’t just change the area type locally. You can define your own area type which your NavMeshAgents can avoid.
More info about custom area types can be found here Unity - Manual: Navigation Areas and Costs .