EditorGUIUtility.AddCursorRect 添加光标矩形


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

Parameters参数

  • position
    the rectangle the control should be shown within
       控件应该显示在矩形内
  • mouse
    the mouse cursor to use // 使用的鼠标光标

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);}


,