Class GUI
Assembly: UnityEngine.dll
Syntax
Properties
backgroundColor
Declaration
public static Color backgroundColor { get; set; }
Property Value
changed
Declaration
public static bool changed { get; set; }
Property Value
color
Declaration
public static Color color { get; set; }
Property Value
contentColor
Declaration
public static Color contentColor { get; set; }
Property Value
depth
Declaration
public static int depth { get; set; }
Property Value
enabled
Declaration
public static bool enabled { get; set; }
Property Value
|
Improve this Doc
View Source
matrix
Declaration
public static Matrix4x4 matrix { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
protected static string mouseTooltip { get; }
Property Value
|
Improve this Doc
View Source
skin
Declaration
public static GUISkin skin { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public static string tooltip { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
protected static Rect tooltipRect { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
BeginClip(Rect)
Declaration
public static void BeginClip(Rect position)
Parameters
Type |
Name |
Description |
Rect |
position |
|
|
Improve this Doc
View Source
BeginClip(Rect, Vector2, Vector2, Boolean)
Declaration
public static void BeginClip(Rect position, Vector2 scrollOffset, Vector2 renderOffset, bool resetOffset)
Parameters
|
Improve this Doc
View Source
BeginGroup(Rect)
Declaration
public static void BeginGroup(Rect position)
Parameters
Type |
Name |
Description |
Rect |
position |
|
|
Improve this Doc
View Source
BeginGroup(Rect, String)
Declaration
public static void BeginGroup(Rect position, string text)
Parameters
|
Improve this Doc
View Source
BeginGroup(Rect, String, GUIStyle)
Declaration
public static void BeginGroup(Rect position, string text, GUIStyle style)
Parameters
|
Improve this Doc
View Source
BeginGroup(Rect, GUIContent)
Declaration
public static void BeginGroup(Rect position, GUIContent content)
Parameters
|
Improve this Doc
View Source
BeginGroup(Rect, GUIContent, GUIStyle)
Declaration
public static void BeginGroup(Rect position, GUIContent content, GUIStyle style)
Parameters
|
Improve this Doc
View Source
BeginGroup(Rect, GUIStyle)
Declaration
public static void BeginGroup(Rect position, GUIStyle style)
Parameters
|
Improve this Doc
View Source
BeginGroup(Rect, Texture)
Declaration
public static void BeginGroup(Rect position, Texture image)
Parameters
|
Improve this Doc
View Source
BeginGroup(Rect, Texture, GUIStyle)
Declaration
public static void BeginGroup(Rect position, Texture image, GUIStyle style)
Parameters
|
Improve this Doc
View Source
Declaration
public static Vector2 BeginScrollView(Rect position, Vector2 scrollPosition, Rect viewRect)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Vector2 BeginScrollView(Rect position, Vector2 scrollPosition, Rect viewRect, bool alwaysShowHorizontal, bool alwaysShowVertical)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Vector2 BeginScrollView(Rect position, Vector2 scrollPosition, Rect viewRect, bool alwaysShowHorizontal, bool alwaysShowVertical, GUIStyle horizontalScrollbar, GUIStyle verticalScrollbar)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Vector2 BeginScrollView(Rect position, Vector2 scrollPosition, Rect viewRect, GUIStyle horizontalScrollbar, GUIStyle verticalScrollbar)
Parameters
Returns
|
Improve this Doc
View Source
Box(Rect, String)
Declaration
public static void Box(Rect position, string text)
Parameters
|
Improve this Doc
View Source
Box(Rect, String, GUIStyle)
Declaration
public static void Box(Rect position, string text, GUIStyle style)
Parameters
|
Improve this Doc
View Source
Box(Rect, GUIContent)
Declaration
public static void Box(Rect position, GUIContent content)
Parameters
|
Improve this Doc
View Source
Box(Rect, GUIContent, GUIStyle)
Declaration
public static void Box(Rect position, GUIContent content, GUIStyle style)
Parameters
|
Improve this Doc
View Source
Box(Rect, Texture)
Declaration
public static void Box(Rect position, Texture image)
Parameters
|
Improve this Doc
View Source
Box(Rect, Texture, GUIStyle)
Declaration
public static void Box(Rect position, Texture image, GUIStyle style)
Parameters
BringWindowToBack(Int32)
Declaration
public static void BringWindowToBack(int windowID)
Parameters
Type |
Name |
Description |
Int32 |
windowID |
|
BringWindowToFront(Int32)
Declaration
public static void BringWindowToFront(int windowID)
Parameters
Type |
Name |
Description |
Int32 |
windowID |
|
|
Improve this Doc
View Source
Declaration
public static bool Button(Rect position, string text)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static bool Button(Rect position, string text, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
Button(Rect, GUIContent)
Declaration
public static bool Button(Rect position, GUIContent content)
Parameters
Returns
|
Improve this Doc
View Source
Button(Rect, GUIContent, GUIStyle)
Declaration
public static bool Button(Rect position, GUIContent content, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
Button(Rect, Texture)
Declaration
public static bool Button(Rect position, Texture image)
Parameters
Returns
|
Improve this Doc
View Source
Button(Rect, Texture, GUIStyle)
Declaration
public static bool Button(Rect position, Texture image, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
protected static Vector2 DoBeginScrollView(Rect position, Vector2 scrollPosition, Rect viewRect, bool alwaysShowHorizontal, bool alwaysShowVertical, GUIStyle horizontalScrollbar, GUIStyle verticalScrollbar, GUIStyle background)
Parameters
Returns
|
Improve this Doc
View Source
DragWindow()
Declaration
public static void DragWindow()
DragWindow(Rect)
Declaration
public static void DragWindow(Rect position)
Parameters
Type |
Name |
Description |
Rect |
position |
|
|
Improve this Doc
View Source
DrawTexture(Rect, Texture)
Declaration
public static void DrawTexture(Rect position, Texture image)
Parameters
|
Improve this Doc
View Source
DrawTexture(Rect, Texture, ScaleMode)
Declaration
public static void DrawTexture(Rect position, Texture image, ScaleMode scaleMode)
Parameters
|
Improve this Doc
View Source
DrawTexture(Rect, Texture, ScaleMode, Boolean)
Declaration
public static void DrawTexture(Rect position, Texture image, ScaleMode scaleMode, bool alphaBlend)
Parameters
|
Improve this Doc
View Source
DrawTexture(Rect, Texture, ScaleMode, Boolean, Single)
Declaration
public static void DrawTexture(Rect position, Texture image, ScaleMode scaleMode, bool alphaBlend, float imageAspect)
Parameters
|
Improve this Doc
View Source
DrawTexture(Rect, Texture, ScaleMode, Boolean, Single, Color, Single, Single)
Declaration
public static void DrawTexture(Rect position, Texture image, ScaleMode scaleMode, bool alphaBlend, float imageAspect, Color color, float borderWidth, float borderRadius)
Parameters
|
Improve this Doc
View Source
DrawTexture(Rect, Texture, ScaleMode, Boolean, Single, Color, Vector4, Single)
Declaration
public static void DrawTexture(Rect position, Texture image, ScaleMode scaleMode, bool alphaBlend, float imageAspect, Color color, Vector4 borderWidths, float borderRadius)
Parameters
|
Improve this Doc
View Source
DrawTexture(Rect, Texture, ScaleMode, Boolean, Single, Color, Vector4, Vector4)
Declaration
public static void DrawTexture(Rect position, Texture image, ScaleMode scaleMode, bool alphaBlend, float imageAspect, Color color, Vector4 borderWidths, Vector4 borderRadiuses)
Parameters
|
Improve this Doc
View Source
DrawTextureWithTexCoords(Rect, Texture, Rect)
Declaration
public static void DrawTextureWithTexCoords(Rect position, Texture image, Rect texCoords)
Parameters
|
Improve this Doc
View Source
DrawTextureWithTexCoords(Rect, Texture, Rect, Boolean)
Declaration
public static void DrawTextureWithTexCoords(Rect position, Texture image, Rect texCoords, bool alphaBlend)
Parameters
|
Improve this Doc
View Source
EndClip()
Declaration
public static void EndClip()
|
Improve this Doc
View Source
EndGroup()
Declaration
public static void EndGroup()
|
Improve this Doc
View Source
Declaration
public static void EndScrollView()
|
Improve this Doc
View Source
Declaration
public static void EndScrollView(bool handleScrollWheel)
Parameters
Type |
Name |
Description |
Boolean |
handleScrollWheel |
|
FocusControl(String)
Declaration
public static void FocusControl(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
FocusWindow(Int32)
Declaration
public static void FocusWindow(int windowID)
Parameters
Type |
Name |
Description |
Int32 |
windowID |
|
GetNameOfFocusedControl()
Declaration
public static string GetNameOfFocusedControl()
Returns
|
Improve this Doc
View Source
Declaration
public static float HorizontalScrollbar(Rect position, float value, float size, float leftValue, float rightValue)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static float HorizontalScrollbar(Rect position, float value, float size, float leftValue, float rightValue, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
HorizontalSlider(Rect, Single, Single, Single)
Declaration
public static float HorizontalSlider(Rect position, float value, float leftValue, float rightValue)
Parameters
Returns
|
Improve this Doc
View Source
HorizontalSlider(Rect, Single, Single, Single, GUIStyle, GUIStyle)
Declaration
public static float HorizontalSlider(Rect position, float value, float leftValue, float rightValue, GUIStyle slider, GUIStyle thumb)
Parameters
Returns
|
Improve this Doc
View Source
Label(Rect, String)
Declaration
public static void Label(Rect position, string text)
Parameters
|
Improve this Doc
View Source
Label(Rect, String, GUIStyle)
Declaration
public static void Label(Rect position, string text, GUIStyle style)
Parameters
|
Improve this Doc
View Source
Label(Rect, GUIContent)
Declaration
public static void Label(Rect position, GUIContent content)
Parameters
|
Improve this Doc
View Source
Label(Rect, GUIContent, GUIStyle)
Declaration
public static void Label(Rect position, GUIContent content, GUIStyle style)
Parameters
|
Improve this Doc
View Source
Label(Rect, Texture)
Declaration
public static void Label(Rect position, Texture image)
Parameters
|
Improve this Doc
View Source
Label(Rect, Texture, GUIStyle)
Declaration
public static void Label(Rect position, Texture image, GUIStyle style)
Parameters
|
Improve this Doc
View Source
ModalWindow(Int32, Rect, GUI.WindowFunction, String)
Declaration
public static Rect ModalWindow(int id, Rect clientRect, GUI.WindowFunction func, string text)
Parameters
Returns
|
Improve this Doc
View Source
ModalWindow(Int32, Rect, GUI.WindowFunction, String, GUIStyle)
Declaration
public static Rect ModalWindow(int id, Rect clientRect, GUI.WindowFunction func, string text, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
ModalWindow(Int32, Rect, GUI.WindowFunction, GUIContent)
Declaration
public static Rect ModalWindow(int id, Rect clientRect, GUI.WindowFunction func, GUIContent content)
Parameters
Returns
|
Improve this Doc
View Source
ModalWindow(Int32, Rect, GUI.WindowFunction, GUIContent, GUIStyle)
Declaration
public static Rect ModalWindow(int id, Rect clientRect, GUI.WindowFunction func, GUIContent content, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
ModalWindow(Int32, Rect, GUI.WindowFunction, Texture)
Declaration
public static Rect ModalWindow(int id, Rect clientRect, GUI.WindowFunction func, Texture image)
Parameters
Returns
|
Improve this Doc
View Source
ModalWindow(Int32, Rect, GUI.WindowFunction, Texture, GUIStyle)
Declaration
public static Rect ModalWindow(int id, Rect clientRect, GUI.WindowFunction func, Texture image, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
PasswordField(Rect, String, Char)
Declaration
public static string PasswordField(Rect position, string password, char maskChar)
Parameters
Returns
|
Improve this Doc
View Source
PasswordField(Rect, String, Char, Int32)
Declaration
public static string PasswordField(Rect position, string password, char maskChar, int maxLength)
Parameters
Returns
|
Improve this Doc
View Source
PasswordField(Rect, String, Char, Int32, GUIStyle)
Declaration
public static string PasswordField(Rect position, string password, char maskChar, int maxLength, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
PasswordField(Rect, String, Char, GUIStyle)
Declaration
public static string PasswordField(Rect position, string password, char maskChar, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static bool RepeatButton(Rect position, string text)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static bool RepeatButton(Rect position, string text, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
RepeatButton(Rect, GUIContent)
Declaration
public static bool RepeatButton(Rect position, GUIContent content)
Parameters
Returns
|
Improve this Doc
View Source
RepeatButton(Rect, GUIContent, GUIStyle)
Declaration
public static bool RepeatButton(Rect position, GUIContent content, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
RepeatButton(Rect, Texture)
Declaration
public static bool RepeatButton(Rect position, Texture image)
Parameters
Returns
|
Improve this Doc
View Source
RepeatButton(Rect, Texture, GUIStyle)
Declaration
public static bool RepeatButton(Rect position, Texture image, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static void ScrollTo(Rect position)
Parameters
Type |
Name |
Description |
Rect |
position |
|
|
Improve this Doc
View Source
Declaration
public static bool ScrollTowards(Rect position, float maxDelta)
Parameters
Type |
Name |
Description |
Rect |
position |
|
Single |
maxDelta |
|
Returns
|
Improve this Doc
View Source
SelectionGrid(Rect, Int32, String[], Int32)
Declaration
public static int SelectionGrid(Rect position, int selected, string[] texts, int xCount)
Parameters
Returns
|
Improve this Doc
View Source
SelectionGrid(Rect, Int32, String[], Int32, GUIStyle)
Declaration
public static int SelectionGrid(Rect position, int selected, string[] texts, int xCount, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
SelectionGrid(Rect, Int32, GUIContent[], Int32)
Declaration
public static int SelectionGrid(Rect position, int selected, GUIContent[] content, int xCount)
Parameters
Returns
|
Improve this Doc
View Source
SelectionGrid(Rect, Int32, GUIContent[], Int32, GUIStyle)
Declaration
public static int SelectionGrid(Rect position, int selected, GUIContent[] contents, int xCount, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
SelectionGrid(Rect, Int32, Texture[], Int32)
Declaration
public static int SelectionGrid(Rect position, int selected, Texture[] images, int xCount)
Parameters
Returns
|
Improve this Doc
View Source
SelectionGrid(Rect, Int32, Texture[], Int32, GUIStyle)
Declaration
public static int SelectionGrid(Rect position, int selected, Texture[] images, int xCount, GUIStyle style)
Parameters
Returns
SetNextControlName(String)
Declaration
public static void SetNextControlName(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
|
Improve this Doc
View Source
Slider(Rect, Single, Single, Single, Single, GUIStyle, GUIStyle, Boolean, Int32)
Declaration
public static float Slider(Rect position, float value, float size, float start, float end, GUIStyle slider, GUIStyle thumb, bool horiz, int id)
Parameters
Returns
|
Improve this Doc
View Source
TextArea(Rect, String)
Declaration
public static string TextArea(Rect position, string text)
Parameters
Returns
|
Improve this Doc
View Source
TextArea(Rect, String, Int32)
Declaration
public static string TextArea(Rect position, string text, int maxLength)
Parameters
Returns
|
Improve this Doc
View Source
TextArea(Rect, String, Int32, GUIStyle)
Declaration
public static string TextArea(Rect position, string text, int maxLength, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
TextArea(Rect, String, GUIStyle)
Declaration
public static string TextArea(Rect position, string text, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
TextField(Rect, String)
Declaration
public static string TextField(Rect position, string text)
Parameters
Returns
|
Improve this Doc
View Source
TextField(Rect, String, Int32)
Declaration
public static string TextField(Rect position, string text, int maxLength)
Parameters
Returns
|
Improve this Doc
View Source
TextField(Rect, String, Int32, GUIStyle)
Declaration
public static string TextField(Rect position, string text, int maxLength, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
TextField(Rect, String, GUIStyle)
Declaration
public static string TextField(Rect position, string text, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
Toggle(Rect, Boolean, String)
Declaration
public static bool Toggle(Rect position, bool value, string text)
Parameters
Returns
|
Improve this Doc
View Source
Toggle(Rect, Boolean, String, GUIStyle)
Declaration
public static bool Toggle(Rect position, bool value, string text, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
Toggle(Rect, Boolean, GUIContent)
Declaration
public static bool Toggle(Rect position, bool value, GUIContent content)
Parameters
Returns
|
Improve this Doc
View Source
Toggle(Rect, Boolean, GUIContent, GUIStyle)
Declaration
public static bool Toggle(Rect position, bool value, GUIContent content, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
Toggle(Rect, Boolean, Texture)
Declaration
public static bool Toggle(Rect position, bool value, Texture image)
Parameters
Returns
|
Improve this Doc
View Source
Toggle(Rect, Boolean, Texture, GUIStyle)
Declaration
public static bool Toggle(Rect position, bool value, Texture image, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
Toggle(Rect, Int32, Boolean, GUIContent, GUIStyle)
Declaration
public static bool Toggle(Rect position, int id, bool value, GUIContent content, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int Toolbar(Rect position, int selected, string[] texts)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int Toolbar(Rect position, int selected, string[] texts, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
Toolbar(Rect, Int32, GUIContent[])
Declaration
public static int Toolbar(Rect position, int selected, GUIContent[] contents)
Parameters
Returns
|
Improve this Doc
View Source
Toolbar(Rect, Int32, GUIContent[], GUIStyle)
Declaration
public static int Toolbar(Rect position, int selected, GUIContent[] contents, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
Toolbar(Rect, Int32, GUIContent[], GUIStyle, GUI.ToolbarButtonSize)
Declaration
public static int Toolbar(Rect position, int selected, GUIContent[] contents, GUIStyle style, GUI.ToolbarButtonSize buttonSize)
Parameters
Returns
|
Improve this Doc
View Source
Toolbar(Rect, Int32, Texture[])
Declaration
public static int Toolbar(Rect position, int selected, Texture[] images)
Parameters
Returns
|
Improve this Doc
View Source
Toolbar(Rect, Int32, Texture[], GUIStyle)
Declaration
public static int Toolbar(Rect position, int selected, Texture[] images, GUIStyle style)
Parameters
Returns
UnfocusWindow()
Declaration
public static void UnfocusWindow()
|
Improve this Doc
View Source
Declaration
public static float VerticalScrollbar(Rect position, float value, float size, float topValue, float bottomValue)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static float VerticalScrollbar(Rect position, float value, float size, float topValue, float bottomValue, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
VerticalSlider(Rect, Single, Single, Single)
Declaration
public static float VerticalSlider(Rect position, float value, float topValue, float bottomValue)
Parameters
Returns
|
Improve this Doc
View Source
VerticalSlider(Rect, Single, Single, Single, GUIStyle, GUIStyle)
Declaration
public static float VerticalSlider(Rect position, float value, float topValue, float bottomValue, GUIStyle slider, GUIStyle thumb)
Parameters
Returns
|
Improve this Doc
View Source
Window(Int32, Rect, GUI.WindowFunction, String)
Declaration
public static Rect Window(int id, Rect clientRect, GUI.WindowFunction func, string text)
Parameters
Returns
|
Improve this Doc
View Source
Window(Int32, Rect, GUI.WindowFunction, String, GUIStyle)
Declaration
public static Rect Window(int id, Rect clientRect, GUI.WindowFunction func, string text, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
Window(Int32, Rect, GUI.WindowFunction, GUIContent)
Declaration
public static Rect Window(int id, Rect clientRect, GUI.WindowFunction func, GUIContent content)
Parameters
Returns
|
Improve this Doc
View Source
Window(Int32, Rect, GUI.WindowFunction, GUIContent, GUIStyle)
Declaration
public static Rect Window(int id, Rect clientRect, GUI.WindowFunction func, GUIContent title, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
Window(Int32, Rect, GUI.WindowFunction, Texture)
Declaration
public static Rect Window(int id, Rect clientRect, GUI.WindowFunction func, Texture image)
Parameters
Returns
|
Improve this Doc
View Source
Window(Int32, Rect, GUI.WindowFunction, Texture, GUIStyle)
Declaration
public static Rect Window(int id, Rect clientRect, GUI.WindowFunction func, Texture image, GUIStyle style)
Parameters
Returns
Extension Methods