Drag and Drop events

When working with the various drag and drop events, it's important to differentiate between the object being dragged and the object on which the dragged object is dropped.

The InitializePotentialDrag event is called whenever a drag object is found, but before an object is actually being dragged.

The Drag event is called on the object being dragged when it is being dragged. A Drag event occurs when a pointer is pressed within the bounding box of an object and then moved without releasing. It's ended by releasing the pointer. The BeginDrag event is called from the object being dragged when its drag begins and EndDrag event is called when its drag ends.

The Drop event is different from the EndDrag event. The EndDrag event ...

Get Mastering UI Development with Unity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.