Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. 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