# MouseCursor

> Custom mouse cursor shapes used with EditorGUIUtility.AddCursorRect.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEditor](/engine/6000.6/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public enum MouseCursor
```

## Examples

```csharp
//Create a folder and name it “Editor” if this doesn’t already exist
//Put this script in the folder

//This script creates a new menu (“Examples”) and a menu item (“Mouse Cursor”). Click on this option. This displays a small window that has a color box in it.
//Hover over the colored box to cause an Orbit mouse cursor to appear.


using UnityEngine;
using UnityEditor;

public class MouseCursorExample : EditorWindow
{
    [MenuItem("Examples/MouseCursorRect Example")]
    static void AddCursorRectExample()
    {
        MouseCursorExample window =
            EditorWindow.GetWindowWithRect<MouseCursorExample>(new Rect(0, 0, 180, 80));
        window.Show();
    }

    void OnGUI()
    {
        EditorGUI.DrawRect(new Rect(10, 10, 160, 60), new Color(0.5f, 0.5f, 0.85f));
        EditorGUI.DrawRect(new Rect(20, 20, 140, 40), new Color(0.9f, 0.9f, 0.9f));
        EditorGUIUtility.AddCursorRect(new Rect(20, 20, 140, 40), MouseCursor.Orbit);
    }
}
```

## Fields

| Value                                                                                                   | Description                                                      |
| ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| [Arrow](/engine/6000.6/script-reference/unityeditor/mousecursor/arrow.md)                               | Normal pointer arrow.                                            |
| [ArrowMinus](/engine/6000.6/script-reference/unityeditor/mousecursor/arrowminus.md)                     | Arrow with the minus symbol next to it.                          |
| [ArrowPlus](/engine/6000.6/script-reference/unityeditor/mousecursor/arrowplus.md)                       | Arrow with the plus symbol next to it.                           |
| [CustomCursor](/engine/6000.6/script-reference/unityeditor/mousecursor/customcursor.md)                 | The current user defined cursor.                                 |
| [FPS](/engine/6000.6/script-reference/unityeditor/mousecursor/fps.md)                                   | Cursor with an eye and stylized arrow keys for FPS navigation.   |
| [Link](/engine/6000.6/script-reference/unityeditor/mousecursor/link.md)                                 | Arrow with a Link badge (for assigning pointers).                |
| [MoveArrow](/engine/6000.6/script-reference/unityeditor/mousecursor/movearrow.md)                       | Arrow with the move symbol next to it for the sceneview.         |
| [Orbit](/engine/6000.6/script-reference/unityeditor/mousecursor/orbit.md)                               | Cursor with an eye for orbit.                                    |
| [Pan](/engine/6000.6/script-reference/unityeditor/mousecursor/pan.md)                                   | Cursor with a dragging hand for pan.                             |
| [ResizeHorizontal](/engine/6000.6/script-reference/unityeditor/mousecursor/resizehorizontal.md)         | Horizontal resize arrows.                                        |
| [ResizeUpLeft](/engine/6000.6/script-reference/unityeditor/mousecursor/resizeupleft.md)                 | Resize up-Left for window edges.                                 |
| [ResizeUpRight](/engine/6000.6/script-reference/unityeditor/mousecursor/resizeupright.md)               | Resize up-right for window edges.                                |
| [ResizeVertical](/engine/6000.6/script-reference/unityeditor/mousecursor/resizevertical.md)             | Vertical resize arrows.                                          |
| [RotateArrow](/engine/6000.6/script-reference/unityeditor/mousecursor/rotatearrow.md)                   | Arrow with the rotate symbol next to it for the sceneview.       |
| [ScaleArrow](/engine/6000.6/script-reference/unityeditor/mousecursor/scalearrow.md)                     | Arrow with the scale symbol next to it for the sceneview.        |
| [SlideArrow](/engine/6000.6/script-reference/unityeditor/mousecursor/slidearrow.md)                     | Arrow with small arrows for indicating sliding at number fields. |
| [SplitResizeLeftRight](/engine/6000.6/script-reference/unityeditor/mousecursor/splitresizeleftright.md) | Left-Right resize arrows for window splitters.                   |
| [SplitResizeUpDown](/engine/6000.6/script-reference/unityeditor/mousecursor/splitresizeupdown.md)       | Up-Down resize arrows for window splitters.                      |
| [Text](/engine/6000.6/script-reference/unityeditor/mousecursor/text.md)                                 | Text cursor.                                                     |
| [Zoom](/engine/6000.6/script-reference/unityeditor/mousecursor/zoom.md)                                 | Cursor with a magnifying glass for zoom.                         |
