お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Closeドラッグの状態を視覚的に表示するアイコンの設定を行います
デフォルトは DragAndDropVisualMode.Link です。
function OnGUI () { var eventType = Event.current.type; if (eventType == EventType.DragUpdated || eventType == EventType.DragPerform) { // Show a copy icon on the drag DragAndDrop.visualMode = DragAndDropVisualMode.Copy; if (eventType == EventType.DragPerform) DragAndDrop.AcceptDrag(); Event.current.Use(); } }