Author Topic: Pooling system and NavMesh  (Read 497 times)


  • Playmaker Newbie
  • *
  • Posts: 7
    • View Profile
Pooling system and NavMesh
« on: September 04, 2019, 07:07:10 AM »

I had to face to an issue there is a few days and I would share the solution here.

Issue: When you use a pooler to spawn and respawn a prefab with a navMesh agent and the "NavMesh agent move to" action, that works once, and only once. No problem for the first spawn, but, when the prefab respawn, he can't move...

Fix: Disable the navMesh agent on the prefab and enble it at start. Don't use the "navmesh agent move to" in this case, but drag the navMesh agent in the state and click on "Script control" and "Call method", then use the setDirection (bool) to configure the agent's destination and active the everyframe bool.


  • Administrator
  • Hero Member
  • *****
  • Posts: 4586
    • View Profile
    • jinxtergames
Re: Pooling system and NavMesh
« Reply #1 on: September 04, 2019, 02:01:51 PM »
Thanks for the tip!

Indeed when pooling you actually need to 'Reset' many things Before 'Despawning' (and/or set certain values @ start)