In my endless runner game, there are npc’s that all share the same animator controller. I know that to change one of their animation states without effecting the others they each need their own controller. How do I instansiate/duplicate the animator controller for each NPC though code as they spawn.
The state of the animation lives in the Animator, not the AnimatorController. So many animators can share the same AnimatorController without that causing any problems.
Are you facing any bugs when instantiating NPC’s where they share animation state even if that’s not the intention?