making of clone of one character , animator parameter effect each other values. how it can be controlled.

there is one character having an animator . i am trying to create more than one clone of that character but the when it is cloned once its animation run nicely. when second clone created then second one’s animator values are the first one’s animator values so animation of second one clone is effected so i want to create clone of same character having same animator attached but animator does not effect each other values.
thanks.

1 Answer

1

If you’re cloning (instantiating with a reference to) a live object directly, you’re going to clone everything related to that object, including animator states.

To fix this, make a prefab of the original object, and instantiate the prefab instead. That’ll ensure that the prefab has it’s own animator variable values.