Animator.Initialize is slow when I call GameObject.Activate

I have an animator with lots of StateMachineBehaviours.
Each of behaviour has its own variables, so I can’t use SharedBetweenAnimatorsAttribute to accelerate.
I use PoolManager to spawn lots of GameObject.
And it is really slow when GameObject activate the Animator.
Is there any better way to solve this?

2 Likes

did you find a solution to this?

Nope, we just limited the spawn rate.

thanks, I’m spawning over multiple frames as solution, might be same thing.