Wanzyee Studio

Draw an auxiliary icon follows the cursor globally. More...

Inherits EditorWindow.

Properties

static DragAndDropVisualMode mode [get, set]
 The visual mode of cursor to show, to set this will override the icon. More...
 
static Texture icon [get, set]
 The texture of cursor to show, to set this will override the mode. More...
 
static Vector2 offset [get, set]
 The pixel offset between the auxiliary icon and the system cursor. More...
 
static Vector2 size [get, set]
 The pixel size of the auxiliary icon, set Vector2.zero to use the default texture size. More...
 

Detailed Description

Draw an auxiliary icon follows the cursor globally.

Used to provide a cross windows hint for reasons below:

  1. DragAndDrop.visualMode only works when using UnityEditor.DragAndDrop system.
  2. EditorGUIUtility.AddCursorRect() only applies inside the current window.

Property Documentation

DragAndDropVisualMode mode
staticgetset

The visual mode of cursor to show, to set this will override the icon.

Texture icon
staticgetset

The texture of cursor to show, to set this will override the mode.

Vector2 offset
staticgetset

The pixel offset between the auxiliary icon and the system cursor.

Vector2 size
staticgetset

The pixel size of the auxiliary icon, set Vector2.zero to use the default texture size.