Skip to Content
Mastering UI Development with Unity
book

Mastering UI Development with Unity

by Dr. Ashley Godbold
April 2018
Beginner content levelBeginner
468 pages
11h 7m
English
Packt Publishing
Content preview from Mastering UI Development with Unity

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Game Development with Unity for .NET Developers

Game Development with Unity for .NET Developers

Jiadong Chen
Unity UI Cookbook

Unity UI Cookbook

Francesco Sapio

Publisher Resources

ISBN: 9781787125520Supplemental Content