Is it possible to access the cursors that Unity uses?
I need a splitter cursor for use when resizing windows as part of a custom editor window. I would like to use the same texture that the Unity environment uses, simply for consistency.
Is it possible to access the cursors that Unity uses?
I need a splitter cursor for use when resizing windows as part of a custom editor window. I would like to use the same texture that the Unity environment uses, simply for consistency.
You can use EditorGUIUtility.AddCursorRect() (with GUILayoutUtility.GetLastRect(), for example) and MouseCursor
enum has SplitResizeUpDown
and
SplitResizeLeftRight
ones.