Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Jason on June 24, 2012, 11:24:49 PM

Title: How to loop with UIButton Play Animation
Post by: Jason on June 24, 2012, 11:24:49 PM
hi,

I'd like to loop my animation (made with Blender and imported natively). It loops was the Default take. But when activated with UIButton Play Animation, it only plays once.

Is there a setting I am missing?

Jason

Title: Re: How to loop with UIButton Play Animation
Post by: joreldraw on June 25, 2012, 07:59:16 AM
You need to set up your animation import setting.
In project hierachy select your animation  or object that contain the animation and change "Animation Wrap Mode" to "Loop".
Title: Re: How to loop with UIButton Play Animation
Post by: Jason on June 25, 2012, 11:23:52 AM
I did that. Screenshot attached.
Title: Re: How to loop with UIButton Play Animation
Post by: ArenMook on June 25, 2012, 12:45:51 PM
Don't use UIButtonPlayAnimation. Simply create a script that has OnClick() function, and inside it do animation.Play().