|
Hey, So I want to have the position of my button change once the user has clicked it. I'm not sure how to do this and haven't found anything yet on the forums, answers, or documentation. I know I setup the GUI button with GUI.Button(Rect(ect. But How can I tell the button to change location? Thanks!
(comments are locked)
|
|
After countless tries I figured I'd try the duh one for kicks and giggles, figuring it'd absolutely not work because it's too simple.... Yeah it worked. ItemRect.x = #; That'll change the x location of your button. You can use that for scaling the objects as well. Edit: More code for ya since you asked. Could you post the full code? I am having issues with this myself.
Jul 02 '12 at 11:42 PM
franktrog
Do you want to move the button to a random location each time, or a precise new location? Do you mind posting what you had, for posterity? And for future people with similar problems?? thanks man!
Jul 02 '12 at 11:48 PM
the_Simian
(comments are locked)
|
