Question by
Menatombo · Aug 15, 2020 at 11:43 PM ·
navmeshnavmeshagentnav mesh
Navmesh Question A way to rebake Navmesh after destroying obstacle
I'm using Unity 2018.4.20f1 (if that makes a difference...)
I have a patrolling enemy and the enemy can't see the player, but I have breakable walls. If the wall is broken the player can be seen and attacked. The problem is that the enemy won't move on to the area that the wall was after it is broken. The enemy will jump over it to get to the other side, but this doesn't look right because he's jumping over nothing.
I need to know if there is a way to rebake the navmesh or ignore that part if an obstacle is gone from the navmesh?
Comment
Answer by Menatombo · Aug 16, 2020 at 04:15 AM
I got it.
https://forum.unity.com/threads/update-navmesh-at-runtime.475237/
In case anyone else is looking for an answer to updating the navmesh.