title: Unity: Animation won't play on trigger
body: <p>Im having trouble to let Unity play my animations.
  I gave my character an Animator. In this Animator I have this Animations:
  <a href="https://i.stack.imgur.com/TTdS0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TTdS0.png" alt="Animator" /></a></p>
  <p>The trigger between these Animations are working fine and are running correctly on play. The idle animation it self is played, while i can't get it to play the walk or the jump Animation in the game (both work fine in the inspector).
  When on play the triggers are triggered, it even shows the blue bar under the walking or the jumping box, but the animation itself just wont be played in the game.</p>
  <p>Here is the code I use to call the triggers:</p>
  <pre><code>void Update()
      {
          if (Input.GetKey(KeyCode.LeftArrow) || Input.GetKey(KeyCode.RightArrow)|| Input.GetKey(KeyCode.A)||Input.GetKey(KeyCode.D))
          {
              anim.SetBool(&quot;isWalk&quot;, true);
              
          }
          else
          {
              anim.SetBool(&quot;isWalk&quot;, false);
          }
  
          if (Input.GetKey(KeyCode.Space))
          {
              anim.SetBool(&quot;isJump&quot;,true);
          }
          else
          {
              anim.SetBool(&quot;isJump&quot;, false);
          }
          
      }
  
  </code></pre>
  <p>And the Transition Conditions (but these are working fine for me):</p>
  <pre><code>idle-&gt;jump: isJump =true,
  jump-&gt;idle: isJump =fals,
  idle-&gt;walk: isWalk =true,
  walk-&gt;idle: isWalk =false,
  </code></pre>
  <p>screenshot of idle-&gt; walk:</p>
  <p><a href="https://i.stack.imgur.com/xq250.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xq250.png" alt="idle-&gt;walk" /></a></p>
  <p>screenshot of walk-&gt;idle:</p>
  <p><a href="https://i.stack.imgur.com/Yegex.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Yegex.png" alt="walk-&gt;idle" /></a></p>
  <p>I hope someone can help me with this and please excuse my possibly bad english...</p>