title: How to reset the animation after a gameobject is deactivated in Unity?
body: <p>I have a simple cube gameobject which has an animator component attached to it. This animator only controls one simple animation clip, this animation clip simply changes the scale of the gameobject from (1,1,1) to (2,2,2) in half a second.</p>
  
  <p>Now in an another script lets say GameManager I trigger this animation by <code>anim.SetTrigger("Scaleup")</code> and thats works fine where the cube gameobject scales to the correct values which is (2,2,2).</p>
  
  <p>All i'm after here is: When this cube gets deactivated and then reactivated again the animator does reset to its default state (Idle state) but the <strong>size never gets back to its original scale which is (1,1,1) and stays at (2,2,2) no matter what I do</strong> which it seems impossible in unity.</p>
  
  <p><strong>How can I reset the values of the animation clip when a gameobject gets deactivated and reactivated again?</strong></p>
  
  <p>I tried doing this <code>anim.enabled = false</code> and <code>anim.enabled = true</code> but it doesn't work. Help Guys.</p>