EditorGUIUtility
.AddCursorRect
Manual
Reference
Scripting
Scripting
>
Editor Classes
>
EditorGUIUtility
EditorGUIUtility
.AddCursorRect
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
EditorGUIUtility
All Members
Class Variables
systemCopyBuffer
whiteTexture
Class Functions
AddCursorRect
CommandEvent
DrawColorSwatch
DrawCurveSwatch
FindTexture
GetBuiltinSkin
HasObjectThumbnail
HSVToRGB
Load
LoadRequired
LookLikeControls
LookLikeInspector
ObjectContent
PingObject
QueueGameViewInputEvent
RenderGameViewCameras
RGBToHSV
Inherited Class Variables
hotControl
keyboardControl
Inherited Class Functions
GetControlID
GetStateObject
GUIToScreenPoint
QueryStateObject
RotateAroundPivot
ScaleAroundPivot
ScreenToGUIPoint
static
function
AddCursorRect (position :
Rect
, mouse :
MouseCursor
) :
void
Parameters
Name
Description
position
the rectangle the control should be shown within
mouse
the mouse cursor to use
Description
Add a custom mouse pointer to a control
function
OnGUI
()
{
// show the "Link" cursor when the mouse is howering over this rectangle.
EditorGUIUtility.AddCursorRect
(
Rect
(10,10,100,100),
MouseCursor.Link
);
}