# DragAndDrop

> Editor drag & drop operations.

## Definition

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

```csharp
public class DragAndDrop
```

## Static Properties

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

## Static Methods

| Method                                                                                            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AcceptDrag](/engine/6000.0/script-reference/unityeditor/draganddrop/acceptdrag.md)               | Accept a drag operation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [AddDropHandler](/engine/6000.0/script-reference/unityeditor/draganddrop/adddrophandler.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.0/script-reference/unityeditor/draganddropvisualmode/none.md) the system will check the next handler. Any other results ([DragAndDropVisualMode.Rejected](/engine/6000.0/script-reference/unityeditor/draganddropvisualmode/rejected.md) or others [DragAndDropVisualMode](/engine/6000.0/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.0/script-reference/unityeditor/draganddrop/getgenericdata.md)       | Get data associated with current drag and drop operation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [HasHandler](/engine/6000.0/script-reference/unityeditor/draganddrop/hashandler.md)               | Check if the handler is already registered for the destination window ID.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [PrepareStartDrag](/engine/6000.0/script-reference/unityeditor/draganddrop/preparestartdrag.md)   | Clears drag & drop data.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [RemoveDropHandler](/engine/6000.0/script-reference/unityeditor/draganddrop/removedrophandler.md) | Unregister a specific Drop Handler from a Window Drop Target.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [SetGenericData](/engine/6000.0/script-reference/unityeditor/draganddrop/setgenericdata.md)       | Set data associated with current drag and drop operation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [StartDrag](/engine/6000.0/script-reference/unityeditor/draganddrop/startdrag.md)                 | Start a drag operation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |

## Delegates

| Delegate                                                                                                                      | Description                |
| ----------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
| [DragAndDrop.HierarchyDropHandler](/engine/6000.0/script-reference/unityeditor/draganddrop/hierarchydrophandler.md)           | Handler for the Hierarchy. |
| [DragAndDrop.InspectorDropHandler](/engine/6000.0/script-reference/unityeditor/draganddrop/inspectordrophandler.md)           | Handler for the Inspector. |
| [DragAndDrop.ProjectBrowserDropHandler](/engine/6000.0/script-reference/unityeditor/draganddrop/projectbrowserdrophandler.md) | Handler for the Project.   |
| [DragAndDrop.SceneDropHandler](/engine/6000.0/script-reference/unityeditor/draganddrop/scenedrophandler.md)                   | Handler for the Scene.     |
