Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: neufoctobre on August 01, 2016, 08:51:02 AM

Title: ActiveAnimation loop and playing multiple clip
Post by: neufoctobre on August 01, 2016, 08:51:02 AM
Hello,

I wanted to know if there is a way, using ActiveAnimation.Play to loop an animation because when I call it, the animation play only one time.
I have multiple clip attached to an animation and I want to be able to play some in loop mode, some once.
And second thing, is there a way to play two clips at same time using activeAnimation ?
Thanks in advance !
Title: Re: ActiveAnimation loop and playing multiple clip
Post by: ArenMook on August 03, 2016, 09:09:30 AM
ActiveAnimation is merely a helper class that plays an existing animation. It expects an animation/animator to be already on the game object, and that's where you specify what kind of properties it has -- loop etc. For a legacy animation that would be GetComponent<Animation>().wrapMode, for example.