Show / Hide Table of Contents

Class GUIUtility

Inheritance
Object
GUIUtility
EditorGUIUtility
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public class GUIUtility

Properties

hasModalWindow

Declaration
public static bool hasModalWindow { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

hotControl

Declaration
public static int hotControl { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

keyboardControl

Declaration
public static int keyboardControl { get; set; }
Property Value
Type Description
Int32

systemCopyBuffer

Declaration
public static string systemCopyBuffer { get; set; }
Property Value
Type Description
String

Methods

| Improve this Doc View Source

AlignRectToDevice(Rect)

Declaration
public static Rect AlignRectToDevice(Rect rect)
Parameters
Type Name Description
Rect rect
Returns
Type Description
Rect

AlignRectToDevice(Rect, out Int32, out Int32)

Declaration
public static Rect AlignRectToDevice(Rect rect, out int widthInPixels, out int heightInPixels)
Parameters
Type Name Description
Rect rect
Int32 widthInPixels
Int32 heightInPixels
Returns
Type Description
Rect
| Improve this Doc View Source

ExitGUI()

Declaration
public static void ExitGUI()
| Improve this Doc View Source

GetControlID(Int32, FocusType)

Declaration
public static int GetControlID(int hint, FocusType focus)
Parameters
Type Name Description
Int32 hint
FocusType focus
Returns
Type Description
Int32

GetControlID(Int32, FocusType, Rect)

Declaration
public static int GetControlID(int hint, FocusType focusType, Rect rect)
Parameters
Type Name Description
Int32 hint
FocusType focusType
Rect rect
Returns
Type Description
Int32
| Improve this Doc View Source

GetControlID(FocusType)

Declaration
public static int GetControlID(FocusType focus)
Parameters
Type Name Description
FocusType focus
Returns
Type Description
Int32
| Improve this Doc View Source

GetControlID(FocusType, Rect)

Declaration
public static int GetControlID(FocusType focus, Rect position)
Parameters
Type Name Description
FocusType focus
Rect position
Returns
Type Description
Int32
| Improve this Doc View Source

GetControlID(GUIContent, FocusType)

Declaration
public static int GetControlID(GUIContent contents, FocusType focus)
Parameters
Type Name Description
GUIContent contents
FocusType focus
Returns
Type Description
Int32
| Improve this Doc View Source

GetControlID(GUIContent, FocusType, Rect)

Declaration
public static int GetControlID(GUIContent contents, FocusType focus, Rect position)
Parameters
Type Name Description
GUIContent contents
FocusType focus
Rect position
Returns
Type Description
Int32
| Improve this Doc View Source

GetStateObject(Type, Int32)

Declaration
public static object GetStateObject(Type t, int controlID)
Parameters
Type Name Description
Type t
Int32 controlID
Returns
Type Description
Object
| Improve this Doc View Source

GUIToScreenPoint(Vector2)

Declaration
public static Vector2 GUIToScreenPoint(Vector2 guiPoint)
Parameters
Type Name Description
Vector2 guiPoint
Returns
Type Description
Vector2
| Improve this Doc View Source

QueryStateObject(Type, Int32)

Declaration
public static object QueryStateObject(Type t, int controlID)
Parameters
Type Name Description
Type t
Int32 controlID
Returns
Type Description
Object
| Improve this Doc View Source

RotateAroundPivot(Single, Vector2)

Declaration
public static void RotateAroundPivot(float angle, Vector2 pivotPoint)
Parameters
Type Name Description
Single angle
Vector2 pivotPoint
| Improve this Doc View Source

ScaleAroundPivot(Vector2, Vector2)

Declaration
public static void ScaleAroundPivot(Vector2 scale, Vector2 pivotPoint)
Parameters
Type Name Description
Vector2 scale
Vector2 pivotPoint
| Improve this Doc View Source

ScreenToGUIPoint(Vector2)

Declaration
public static Vector2 ScreenToGUIPoint(Vector2 screenPoint)
Parameters
Type Name Description
Vector2 screenPoint
Returns
Type Description
Vector2
| Improve this Doc View Source

ScreenToGUIRect(Rect)

Declaration
public static Rect ScreenToGUIRect(Rect screenRect)
Parameters
Type Name Description
Rect screenRect
Returns
Type Description
Rect

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX