Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

DragAndDrop

class in UnityEditor

Description

Editor drag & drop operations.

Static Properties

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 Methods

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.
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答