EditorGUIUtility.AddCursorRect 添加光标矩形

static function AddCursorRect (position : Rect, mouse : MouseCursor) : void

Parameters参数

Returns

Add a custom mouse pointer to a control

添加一个自定义鼠标指针到控件。

function OnGUI()
{
	// show the "Link" cursor when the mouse is howering over this rectangle.
	//当鼠标覆盖到这个矩形,显示Link光标
	EditorGUIUtility.AddCursorRect (Rect(10,10,100,100), MouseCursor.Link);
}
Page last updated: 2011-7-15