DragAndDrop.visualMode 可视模式

static var visualMode : DragAndDropVisualMode

Description描述

The visual indication of the drag.

拖动的可视化。

默认为 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();

	}

}
Page last updated: 2011-5-27