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

Mechanim doesn't recognize multiple conditions to transition between animations

Discussion in 'Animation' started by The-NightflyAZ, Jan 19, 2022.

  1. The-NightflyAZ

    The-NightflyAZ

    Joined:
    Apr 27, 2015
    Posts:
    17
    This is totally pissing me off and it is probably something really simple but still.

    I just want to transition from a idle animation to a walk animation when the "Speed" float parameter in mechanim either is greater than .1f, or less than -.1f.

    If you watch the video, you should see the character's animation transition when there is a single condition. I add the second condition, and...nothing. The character never gets out of idle no matter what value speed displays. Any thoughts?

     
  2. Kybernetik

    Kybernetik

    Joined:
    Jan 3, 2013
    Posts:
    2,487
    All conditions must be true for a transition to be executed.

    If you want either A or B, you need to make two transitions with different conditions.
     
    MarekUnity likes this.
  3. The-NightflyAZ

    The-NightflyAZ

    Joined:
    Apr 27, 2015
    Posts:
    17
    Thanks Kyberneitik. I swear that when I made the 2nd transition Unity lumped it with the first one and that's why I have the transition w/the three arrows instead of the usual one. User error as I suspected.