Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

DragAndDrop

Namespace: UnityEditor

Description

Editor drag & drop operations.

Static Variables

activeControlIDGet or set ID of currently active drag and drop control.
objectReferencesReferences to objects being dragged.
pathsThe file names being dragged.
visualModeThe visual indication of the drag.

Static Functions

AcceptDragAccept a drag operation.
GetGenericDataGet data associated with current drag and drop operation.
PrepareStartDragClears drag & drop data.
SetGenericDataSet data associated with current drag and drop operation.
StartDragStart a drag operation.