Search Unity

Unity UI Buttons - How Do I Share an Animation

Discussion in 'UGUI & TextMesh Pro' started by unity_hJ8G4RKYVy5Osg, Jun 22, 2019.

  1. unity_hJ8G4RKYVy5Osg

    unity_hJ8G4RKYVy5Osg

    Joined:
    Jan 23, 2019
    Posts:
    3
    Hai,

    I'm making a mobile game here and I'm having a issue.
    All my UI buttons on main manu etc... will have the same animations like
    change sprite when pressing and scale it up.

    My problem here is how do i share the same animation for every button but I want to change the sprites on every UI button. So PlayButton dont get the Settings Sprite.

    I could make 10 Animator Controller and Idle and Pressed Animations but it most be a easier and faster way of doing this right, .... right?
     
  2. unity_hJ8G4RKYVy5Osg

    unity_hJ8G4RKYVy5Osg

    Joined:
    Jan 23, 2019
    Posts:
    3
    Dont worry, I solved it my self :)