New answers tagged iphone
This is something I did in UnityScript, you can adapt it accordingly. This uses the mouse to drag. You need to add an EventTrigger component to your button. Then add a PointerDown, PointerUp and a Drag event. Drag your GameObject where the script lies onto each event and then find the relevant function for each: StopDragging function to PointerUp ...
As previously mentioned, the best way would be to implement it your own and since your objects won't always be squared or circle like, check this link out: http://docs.unity3d.com/ScriptReference/Renderer-bounds.html
Top 50 recent answers are included