x


How to tell if DragAndDrop has been cancelled or completed.

I have an EditorWindow that shows visual feedback while the user is dragging an object. It works fine if the user drops on the window, but I haven't found a way to determine if the user has cancelled the drag or dropped the object on another EditorWindow so I can turn the feedback off.

I thought I could use DragAndDrop.visualMode as a hacky workaround, but it returns DragAndDropVisualMode.None for both the regular cursor and the "can't drop here" cursor.

I'm looking for something like DragAndDrop.isComplete, or a reliable way to figure that out. I've looked at all the DragAndDrop properties while dragging and cancelling and none of them seem to work for this... am I missing something obvious?

more ▼

asked Dec 26 '11 at 03:46 AM

Alex Chouls gravatar image

Alex Chouls
428 11 15 25

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x171
x19
x16

asked: Dec 26 '11 at 03:46 AM

Seen: 290 times

Last Updated: Dec 26 '11 at 03:46 AM