Author Topic: ActiveAnimation Reset ?  (Read 2423 times)

laurentl

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 188
    • View Profile
    • McDROID
ActiveAnimation Reset ?
« on: May 25, 2013, 10:12:36 PM »
I'm making heavy use of ActiveAnimation because .Play(anim, clipname, direction, show?, hide?) is just awesome.
Now I see there is a Reset function but not as a static. Is there something else that allows me in one line, without weird referencing to reset animation to 0 ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: ActiveAnimation Reset ?
« Reply #1 on: May 25, 2013, 11:55:37 PM »
ActiveAnimation.Play() will reset the animation if it needs to, but you can always just GetComponent<ActiveAnimation>().Reset().