Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Mitch on October 03, 2013, 08:02:33 PM

Title: UIPlayAnimation in 3.x vs UIButtonPlayAnimation
Post by: Mitch on October 03, 2013, 08:02:33 PM
Events in 3.x are killing me...   >:(

The onFinished event used to send an ActiveAnimation object with it which enabled me to determine the GameObject that had just finished play its animation...  Now I have absolutely no way to determine exactly which animation just finished.

UIToggle.current.value seems to be the method for porting this behaviour from 2.x from the porting video that was posted.  UIPlayAnimation seems to not support the same features.

I am disappointed :(
Title: Re: UIPlayAnimation in 3.x vs UIButtonPlayAnimation
Post by: ArenMook on October 04, 2013, 02:05:50 AM
ActiveAnimation.current gives you which animation has completed. It's always Something.current.