Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Switch animation by button

Discussion in 'Animation' started by KENDIl, Nov 25, 2019.

  1. KENDIl

    KENDIl

    Joined:
    Nov 13, 2019
    Posts:
    13
    I want to make a switch between the animation of a calm idleand a fighting idle by pressing a key. How to do it ?
     
  2. greddu9t

    greddu9t

    Joined:
    Sep 24, 2019
    Posts:
    7
    Maybe try to do it with Animator.SetTrigger(), if your states are well set it should goes well