title: Unity Animation Plays In Preview But Not When Playing Game
body: <p>I made a simple animation for a sword gameobject to constantly slowly move up and down while the player character is standing still. </p>
  
  <p>My sword has an Animator component attached: </p>
  
  <p><img src="https://i.stack.imgur.com/be4DN.png" alt="see here"></p>
  
  <p>The Animator Controller is also very simple, with this animation being attached to my default state: </p>
  
  <p><img src="https://i.stack.imgur.com/7Xqxu.png" alt="see here"></p>
  
  <p>The animation plays just fine in the preview mode of the Animation window. But when I run my game, the animation does not play at all, the sword just stands still instead of moving.</p>
  
  <p>What is the cause of this problem?</p>