Author Topic: TweenPosition And UI Play Problem  (Read 3887 times)

amirivala

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 17
    • View Profile
TweenPosition And UI Play Problem
« on: October 27, 2014, 02:47:18 PM »
Hi,
I have a problems,i have a UIBUtton that has a Tween Position and UIPLAY Tween (That Control lots of Other GameObjects position), I Don't know why when i pressed the button, it start to play TWEEN POSITION and after TweenPosition Finished it starts to play the UIPLAY tweens.
what i want is both of them play at the same time, not now after another.
Please Please help me, i don't know what to do
thanks
appreciate it.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TweenPosition And UI Play Problem
« Reply #1 on: October 29, 2014, 05:00:46 AM »
I see no reason for that unless you set it up like that. What is the TweenPosition's OnFinished set to call?

amirivala

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: TweenPosition And UI Play Problem
« Reply #2 on: October 30, 2014, 11:40:33 AM »
I Know its my problem with On Finished call, what i wanted to do and i don't know how to do it is, when i press the light bulb, both of them start to move, in the scene that Ive uploaded screen shots from it, First Lightbulb move to center when its finished Notf button starts to go to center, please help me and explain how to make both of them move at the same time
Appreciate it

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TweenPosition And UI Play Problem
« Reply #3 on: October 30, 2014, 01:06:54 PM »
UIPlayTween can trigger a remote tween. You can either specify a root object, set "include children" and give your tweens a group ID, or have multiple UIPlayTween components attached to the same button.