Is there anyway to avoid a StackOverflow
Hi,
I've wrote a script that places 10 spawn points on a NavMesh then checks 1.2mt around it for any obstructions if it find any then it runs again until 10 are placed with nothing around them, them I check all are accessible with NavMesh.CalculatePath and if any of them are PathPartial or PathInvalid It runs again until all spawn points are free from obstructions are all saw points are PathComplete.
9 times out of 10 it works fine but the odd time it will throw a StackOverflow, is there any way to avoid this?
Thanks.
Without seeing your code, there's no way to know what's causing it. You're probably having infinite recursion of some sort.
Your answer
Follow this Question
Related Questions
NavMesh pathing not working 0 Answers
How do I make an animated AI enemy float but still move using NavMesh? 2 Answers
Problem with navagent killing FPS 0 Answers
Override NavMesh Max Slope? 0 Answers
Why are some objects not able to be navigation static? 1 Answer