- Home /
swipe ui panel
Hi , i want to detect swipe in Unity3d UI. for example i want to move UI panel by dragging it. i found some scripts but they works on 3d objects. i want to detect swipe on Unity3d new UI system. can any one help me ? thanks
Comment
Answer by corn · Dec 30, 2015 at 05:43 PM
You can use the ScrollRect component, or if you want to make your own script, you can implement IDragHandler and IEndDragHandler. That way your script can receive OnDrag and OnEndDrag callbacks.
Adding the ScrollRect component worked for me!! Thanks a lot :)