Version: 2022.3
言語: 日本語

DragAndDrop

class in UnityEditor

マニュアルに切り替える

説明

UnityEditor 上で行われるドラッグ&ドロップを操作するクラス

Static 変数

activeControlID現在のアクティブなコントロール ID の取得や設定を行います
objectReferencesドラッグされている objects の参照
pathsドラッグされているファイル名
visualModeドラッグの状態を視覚的に表示するアイコンの設定を行います

Static 関数

AcceptDragドラッグ操作を受け付けます
AddDropHandlerAllow override of the default behavior for the corresponding window. Multiple handlers can be registered on the same window. If a handler returns DragAndDropVisualMode.None the system will check the next handler. Any other results (DragAndDropVisualMode.Rejected or others DragAndDropVisualMode) means this handler has processed the drop event and no other handler will be called. The last handler is the default Unity handler.
GetGenericData現在のドラッグ&ドロップに関するデータを取得します。
HasHandlerCheck if the handler is already registered for the destination window ID.
PrepareStartDragドラッグ&ドロップのデータをクリアします
RemoveDropHandlerUnregister a specific Drop Handler from a Window Drop Target.
SetGenericData現在のドラッグ&ドロップ操作に関連付けられているデータを設定します
StartDragドラッグを開始します

デリゲート

HierarchyDropHandlerHandler for the Hierarchy.
InspectorDropHandlerHandler for the Inspector.
ProjectBrowserDropHandlerHandler for the Project.
SceneDropHandlerHandler for the Scene.