Our team recently meet a very wired problem.
We try to use object pool and reuse the characters in the scene.
The behaviour is correct in the unity editor.
But on android mobile, animation of some characters doesn’t play after reusing.
We have alrealy had the following configs.
Animator > Culling Mode > Always Animate
SkinnedMeshRenderer > Update When Offscreen
And we made another try that moving the recycled object out of screen instead of inactivating it. However, it failed as well.
Do we need to reset the animation state after reactivating the GameObject?
Looking forward to your kind help!
Had the same issue, can’t remember how I solved it.
I think this is the method that fixed it:
https://docs.unity3d.com/ScriptReference/Animator.Rebind.html
You need to call it on all the pooled animator components.
Many thanks for your solution!
1 Like