GUIUtility

Utility class for making new GUI controls.

Unless you are creating your own GUI controls from scratch, you should not use these functions.

Class Variables
hotControl

The controlID of the current hot control.

keyboardControl

The controlID of the control that has keyboard focus.

Class Functions
GetControlID

Get a unique ID for a control.

GetStateObject

Get a state object from a controlID.

QueryStateObject

Get an existing state object from a controlID.

GUIToScreenPoint

Convert a point from GUI position to screen space.

ScreenToGUIPoint

Convert a point from screen space to GUI position.

RotateAroundPivot

Helper function to rotate the GUI around a point.

ScaleAroundPivot

Helper function to scale the GUI around a point.