Search Unity

Copy Animator with values

Discussion in 'Scripting' started by Mbialas1, Jan 19, 2019.

  1. Mbialas1

    Mbialas1

    Joined:
    Jul 13, 2018
    Posts:
    11
    Hello,

    I do now serialization in my project and I use StateMachine Animator with 12 bools. Can I copy animator in script with active and desactive bools or do I have to save each separately bool in code ?

    That doesnt work:

    Code (CSharp):
    1. DataSave.Enemie[i].GetComponent<Animator>().runtimeAnimatorController = DataSave.Enemie_animator[i];