Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: eliascanaza on December 28, 2012, 04:46:06 PM

Title: Change position button with effect when i clicked
Post by: eliascanaza on December 28, 2012, 04:46:06 PM
Helo guys ...
how Change position button with effect when i clicked hover button, this effect wiil be delay or other, or there is a script to this... help me thankss...
Title: Re: Change position button with effect when i clicked
Post by: ArenMook on December 28, 2012, 08:29:02 PM
I'm not sure what you're asking.
Title: Re: Change position button with effect when i clicked
Post by: eliascanaza on January 03, 2013, 01:24:43 PM
so.. when i will click on button, the other button will be move an other position ...
Title: Re: Change position button with effect when i clicked
Post by: dlewis on January 03, 2013, 05:58:48 PM
Make a script that implements OnClick(). Have a public variable to your other button as a gameobject (public GameObject otherButton). When OnClick is called then use TweenPosition.begin() and pass in the required variables (What you want to move, where you want to move it and how long it should take).
Title: Re: Change position button with effect when i clicked
Post by: eliascanaza on January 04, 2013, 11:50:03 AM
cooool ...  this work cool !! BUT when i click the button A for  button B move=> when i want click on button B this does restart your position ... i don't now... Iwant change position an other position ...  thanksss
Title: Re: Change position button with effect when i clicked
Post by: eliascanaza on January 04, 2013, 11:56:02 AM
i use this function ..
  1. TweenPosition.Begin(gameObject, 2f, new Vector3(0,500,0));