# DragAndDrop

> Editor drag & drop operations.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor](/engine/6000.6/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public class DragAndDrop
```

## Static Properties

| Property                                                                                        | Description                                                                                   |
| ----------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| [activeControlID](/engine/6000.6/script-reference/unityeditor/draganddrop/activecontrolid.md)   | Get or set ID of currently active drag and drop control.                                      |
| [entityIds](/engine/6000.6/script-reference/unityeditor/draganddrop/entityids.md)               | References to Entity Ids being dragged.                                                       |
| [objectReferences](/engine/6000.6/script-reference/unityeditor/draganddrop/objectreferences.md) | References to [objects](/engine/6000.6/script-reference/unityengine/object.md) being dragged. |
| [paths](/engine/6000.6/script-reference/unityeditor/draganddrop/paths.md)                       | The file names being dragged.                                                                 |
| [visualMode](/engine/6000.6/script-reference/unityeditor/draganddrop/visualmode.md)             | The visual indication of the drag.                                                            |

## Static Methods

| Method                                                                                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AcceptDrag](/engine/6000.6/script-reference/unityeditor/draganddrop/acceptdrag.md)                   | Accept a drag operation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [AddDropHandlerV2](/engine/6000.6/script-reference/unityeditor/draganddrop/adddrophandlerv2.md)       | Allow override of the default behavior for the corresponding window. Multiple handlers can be registered on the same window. If a handler returns [DragAndDropVisualMode.None](/engine/6000.6/script-reference/unityeditor/draganddropvisualmode/none.md) the system will check the next handler. Any other results ([DragAndDropVisualMode.Rejected](/engine/6000.6/script-reference/unityeditor/draganddropvisualmode/rejected.md) or others [DragAndDropVisualMode](/engine/6000.6/script-reference/unityeditor/draganddropvisualmode.md)) means this handler has processed the drop event and no other handler will be called. The last handler is the default Unity handler. |
| [GetGenericData](/engine/6000.6/script-reference/unityeditor/draganddrop/getgenericdata.md)           | Get data associated with current drag and drop operation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [HasHandler](/engine/6000.6/script-reference/unityeditor/draganddrop/hashandler.md)                   | Check if the handler is already registered for the destination window ID.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [PrepareStartDrag](/engine/6000.6/script-reference/unityeditor/draganddrop/preparestartdrag.md)       | Clears drag & drop data.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [RemoveDropHandlerV2](/engine/6000.6/script-reference/unityeditor/draganddrop/removedrophandlerv2.md) | Unregister a specific Drop Handler from a Window Drop Target.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [SetGenericData](/engine/6000.6/script-reference/unityeditor/draganddrop/setgenericdata.md)           | Set data associated with current drag and drop operation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [StartDrag](/engine/6000.6/script-reference/unityeditor/draganddrop/startdrag.md)                     | Start a drag operation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |

## Delegates

| Delegate                                                                                                                          | Description                |
| --------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
| [DragAndDrop.HierarchyDropHandlerV2](/engine/6000.6/script-reference/unityeditor/draganddrop/hierarchydrophandlerv2.md)           | Handler for the Hierarchy. |
| [DragAndDrop.InspectorDropHandler](/engine/6000.6/script-reference/unityeditor/draganddrop/inspectordrophandler.md)               | Handler for the Inspector. |
| [DragAndDrop.ProjectBrowserDropHandlerV2](/engine/6000.6/script-reference/unityeditor/draganddrop/projectbrowserdrophandlerv2.md) | Handler for the Project.   |
| [DragAndDrop.SceneDropHandler](/engine/6000.6/script-reference/unityeditor/draganddrop/scenedrophandler.md)                       | Handler for the Scene.     |
