Author Topic: Activate TweenScale at runtime and to PingPong only once  (Read 8255 times)

mtran003

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Activate TweenScale at runtime and to PingPong only once
« on: May 04, 2012, 05:09:55 PM »
So I added the TweenScale component to my label in the editor and it looks great.  However, I need to be able to turn it on and off at run time and to only have it PingPong only once.  That is to scale up and then back down again and then stop.

I am using Javascript.   My searches have not been fruitful.

Any help would be appreciated.

Regards,
Manny

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Activate TweenScale at runtime and to PingPong only once
« Reply #1 on: May 04, 2012, 06:29:26 PM »
Create an animation for that instead of a tween, and you will be able to do whatever you want.

mtran003

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Re: Activate TweenScale at runtime and to PingPong only once
« Reply #2 on: May 05, 2012, 09:23:32 AM »
Great.  Is there a tutorial somewhere on how to add animations to a label?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Activate TweenScale at runtime and to PingPong only once
« Reply #3 on: May 05, 2012, 09:24:32 AM »
They're just Unity's built-in animations. Open the animation window, select what you want to animate, click the Record button, and move it around.