Scripting API

GUIUtility

class in UnityEngine · UnityEngine.IMGUIModule

15 of 16 of Unity's membersUnity's documentation
In Tassix

IMGUI utilities: the clipboard text input fields copy and paste through.

Properties 4

static bool hasModalWindow { get; }
static int hotControl { get; set; }

The control the mouse is held on (0: none).

static int keyboardControl { get; set; }

The control that has keyboard focus (0: none).

static string systemCopyBuffer { get; set; }

The clipboard (kept in the process; not shared with the OS yet).

Methods 10

static void ExitGUI()
static Vector2 GUIToScreenPoint(Vector2 guiPoint)

A point in the current group to the screen's GUI space (pixels from the top left).

static Rect GUIToScreenRect(Rect guiRect)
static int GetControlID(FocusType focus)
static int GetControlID(int hint, FocusType focus)
static int GetControlID(GUIContent contents, FocusType focus)
static int GetControlID(FocusType focus, Rect position)
static int GetControlID(int hint, FocusType focus, Rect position)
static int GetControlID(GUIContent contents, FocusType focus, Rect position)
static object? GetStateObject(System.Type t, int controlID)
static object? QueryStateObject(System.Type t, int controlID)
static void RotateAroundPivot(float angle, Vector2 pivotPoint)
static void ScaleAroundPivot(Vector2 scale, Vector2 pivotPoint)
static Vector2 ScreenToGUIPoint(Vector2 screenPoint)
static Rect ScreenToGUIRect(Rect screenRect)

Not in Tassix yet 1

AlignRectToDevice