Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - BongoMongo

Pages: [1]
1
NGUI 3 Documentation / Re: UIPlayAnimation
« on: June 23, 2014, 07:02:47 AM »
Thank you, that solved my problem!  ;)

2
NGUI 3 Documentation / Re: UIPlayAnimation
« on: June 18, 2014, 04:41:26 AM »
I have a button that is supposed to open a menu if I press it once and closes the menu if I press again - a simple Popup. I want to animate the open and close transition with two separate animations. Everything works fine for the first time but if you try to open the menu again, the open animation does not play and is stuck at the end.

I've tried several approaches to reset the animation, for instance:
  1. m_OpenAnimation.target.Rewind();
or
  1.  m_OpenAnimation.target.Rewind(m_OpenAnimation.clipName);
or
  1. ActiveAnimation.current.Reset()
but none of these approaches seem to work.
The only thing that does work is to play the animation backwards via
  1. m_OpenAnimation.Play(false);

How can I reset the animation to the beginning?

Cheers

Pages: [1]