playMaker

Author Topic: Ugui Moving Buttons  (Read 1679 times)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Ugui Moving Buttons
« on: October 31, 2016, 11:47:40 AM »
hi,
I am updating one of my older games which used the old gui and HOTween.
I am setting this up now in the Ugui, But i am having problems  with swapping buttons (moving)
how can i move buttons in Ugui?
Here is a short video from my old version moving a button.



600

  • Beta Group
  • Hero Member
  • *
  • Posts: 713
    • Flashing Lights
Re: Ugui Moving Buttons
« Reply #1 on: October 31, 2016, 01:03:03 PM »
I use Rect Transform Set Local Position / Rotation with interpolated/animated values.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Ugui Moving Buttons
« Reply #2 on: November 01, 2016, 11:17:28 AM »
Hi,
Thanks for the help, i got it to work after a while.

i had some animations on the buttons for when a wrong button is pressed, which will animate an explosion and animate the buttons to 'fly' offscreen.

i had to disable the animator component to move the buttons and enable it again just before the explosion.