Author Topic: How to loop with UIButton Play Animation  (Read 4664 times)

Jason

  • Guest
How to loop with UIButton Play Animation
« 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


joreldraw

  • Guest
Re: How to loop with UIButton Play Animation
« Reply #1 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".

Jason

  • Guest
Re: How to loop with UIButton Play Animation
« Reply #2 on: June 25, 2012, 11:23:52 AM »
I did that. Screenshot attached.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to loop with UIButton Play Animation
« Reply #3 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().