1
NGUI 3 Support / Re: Switch focus from Button to DragObject
« on: October 22, 2013, 01:24:06 AM »
Great thanks ArenMook!!!
And for anyone that may be interested, this is the working code block:
UICamera.currentTouch.pressed = dragObject;
button.SendMessage("OnPress", false);
dragObject.SendMessage("OnPress", true);
UICamera.currentTouch.dragged = dragObject;
P.S This works for me but if the order of commands is wrong please let me know.
And for anyone that may be interested, this is the working code block:
UICamera.currentTouch.pressed = dragObject;
button.SendMessage("OnPress", false);
dragObject.SendMessage("OnPress", true);
UICamera.currentTouch.dragged = dragObject;
P.S This works for me but if the order of commands is wrong please let me know.