An issue about AIPath when using pool manager

version: 4.2.18
Disabling the gameobject which was attached by AIPath, the value of destination did not reset to new Vector3(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity). then after enabling the gameobject the function of OnTargetReached will be called immediately


This is by design. Disabling the agent is not a reason to clear its destination.
If you want to clear the destination (and maybe other parameters) when the agent enters your pool, you’ll have to do this using a custom script.

I would recommend not using OnTargetReached, and instead poll the reachedDestination property. It is more robust for cases such like this.