Best way to pause pathfinding

Updated on August 28, 2019 in [A] Unity Scripting
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on August 28, 2019

Hi all,

I’ve a question about pausing (or any other thing that will do the work) a enemy that walks through path finding. I’m trying to make an enemy walk through certain objects but when they get close (inside the trigger area) I want to pause it, play an animation (and do something with the object) and then continue a path to the target.

Can anyone help me with finding the best strategy to do this?


  • Liked by
0 on August 28, 2019

Are you using Unity’s navigation, or your own?

If you’re using Unity’s, you could, upon entering the trigger area, just set the destination point to where ever the character currently is. Effectively stopping them in place. Do your animation, then reset the destination to the actual one.

  • Liked by