Class GUILayout
Assembly: UnityEngine.dll
Syntax
Methods
|
Improve this Doc
View Source
BeginArea(Rect)
Declaration
public static void BeginArea(Rect screenRect)
Parameters
Type |
Name |
Description |
Rect |
screenRect |
|
|
Improve this Doc
View Source
BeginArea(Rect, String)
Declaration
public static void BeginArea(Rect screenRect, string text)
Parameters
|
Improve this Doc
View Source
BeginArea(Rect, String, GUIStyle)
Declaration
public static void BeginArea(Rect screenRect, string text, GUIStyle style)
Parameters
|
Improve this Doc
View Source
BeginArea(Rect, GUIContent)
Declaration
public static void BeginArea(Rect screenRect, GUIContent content)
Parameters
|
Improve this Doc
View Source
BeginArea(Rect, GUIContent, GUIStyle)
Declaration
public static void BeginArea(Rect screenRect, GUIContent content, GUIStyle style)
Parameters
|
Improve this Doc
View Source
BeginArea(Rect, GUIStyle)
Declaration
public static void BeginArea(Rect screenRect, GUIStyle style)
Parameters
|
Improve this Doc
View Source
BeginArea(Rect, Texture)
Declaration
public static void BeginArea(Rect screenRect, Texture image)
Parameters
|
Improve this Doc
View Source
BeginArea(Rect, Texture, GUIStyle)
Declaration
public static void BeginArea(Rect screenRect, Texture image, GUIStyle style)
Parameters
|
Improve this Doc
View Source
BeginHorizontal(String, GUIStyle, GUILayoutOption[])
Declaration
public static void BeginHorizontal(string text, GUIStyle style, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
BeginHorizontal(GUIContent, GUIStyle, GUILayoutOption[])
Declaration
public static void BeginHorizontal(GUIContent content, GUIStyle style, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
BeginHorizontal(GUILayoutOption[])
Declaration
public static void BeginHorizontal(params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
BeginHorizontal(GUIStyle, GUILayoutOption[])
Declaration
public static void BeginHorizontal(GUIStyle style, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
BeginHorizontal(Texture, GUIStyle, GUILayoutOption[])
Declaration
public static void BeginHorizontal(Texture image, GUIStyle style, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
Declaration
public static Vector2 BeginScrollView(Vector2 scrollPosition, bool alwaysShowHorizontal, bool alwaysShowVertical, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Vector2 BeginScrollView(Vector2 scrollPosition, bool alwaysShowHorizontal, bool alwaysShowVertical, GUIStyle horizontalScrollbar, GUIStyle verticalScrollbar, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Vector2 BeginScrollView(Vector2 scrollPosition, bool alwaysShowHorizontal, bool alwaysShowVertical, GUIStyle horizontalScrollbar, GUIStyle verticalScrollbar, GUIStyle background, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Vector2 BeginScrollView(Vector2 scrollPosition, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Vector2 BeginScrollView(Vector2 scrollPosition, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Vector2 BeginScrollView(Vector2 scrollPosition, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Vector2 BeginScrollView(Vector2 scrollPosition, GUIStyle horizontalScrollbar, GUIStyle verticalScrollbar, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
BeginVertical(String, GUIStyle, GUILayoutOption[])
Declaration
public static void BeginVertical(string text, GUIStyle style, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
BeginVertical(GUIContent, GUIStyle, GUILayoutOption[])
Declaration
public static void BeginVertical(GUIContent content, GUIStyle style, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
BeginVertical(GUILayoutOption[])
Declaration
public static void BeginVertical(params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
BeginVertical(GUIStyle, GUILayoutOption[])
Declaration
public static void BeginVertical(GUIStyle style, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
BeginVertical(Texture, GUIStyle, GUILayoutOption[])
Declaration
public static void BeginVertical(Texture image, GUIStyle style, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
Box(String, GUILayoutOption[])
Declaration
public static void Box(string text, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
Box(String, GUIStyle, GUILayoutOption[])
Declaration
public static void Box(string text, GUIStyle style, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
Box(GUIContent, GUILayoutOption[])
Declaration
public static void Box(GUIContent content, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
Box(GUIContent, GUIStyle, GUILayoutOption[])
Declaration
public static void Box(GUIContent content, GUIStyle style, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
Box(Texture, GUILayoutOption[])
Declaration
public static void Box(Texture image, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
Box(Texture, GUIStyle, GUILayoutOption[])
Declaration
public static void Box(Texture image, GUIStyle style, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
Declaration
public static bool Button(string text, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static bool Button(string text, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Button(GUIContent, GUILayoutOption[])
Declaration
public static bool Button(GUIContent content, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Button(GUIContent, GUIStyle, GUILayoutOption[])
Declaration
public static bool Button(GUIContent content, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Button(Texture, GUILayoutOption[])
Declaration
public static bool Button(Texture image, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Button(Texture, GUIStyle, GUILayoutOption[])
Declaration
public static bool Button(Texture image, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
EndArea()
Declaration
public static void EndArea()
|
Improve this Doc
View Source
EndHorizontal()
Declaration
public static void EndHorizontal()
|
Improve this Doc
View Source
Declaration
public static void EndScrollView()
|
Improve this Doc
View Source
EndVertical()
Declaration
public static void EndVertical()
|
Improve this Doc
View Source
ExpandHeight(Boolean)
Declaration
public static GUILayoutOption ExpandHeight(bool expand)
Parameters
Type |
Name |
Description |
Boolean |
expand |
|
Returns
|
Improve this Doc
View Source
ExpandWidth(Boolean)
Declaration
public static GUILayoutOption ExpandWidth(bool expand)
Parameters
Type |
Name |
Description |
Boolean |
expand |
|
Returns
|
Improve this Doc
View Source
FlexibleSpace()
Declaration
public static void FlexibleSpace()
|
Improve this Doc
View Source
Height(Single)
Declaration
public static GUILayoutOption Height(float height)
Parameters
Type |
Name |
Description |
Single |
height |
|
Returns
|
Improve this Doc
View Source
Declaration
public static float HorizontalScrollbar(float value, float size, float leftValue, float rightValue, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static float HorizontalScrollbar(float value, float size, float leftValue, float rightValue, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
HorizontalSlider(Single, Single, Single, GUILayoutOption[])
Declaration
public static float HorizontalSlider(float value, float leftValue, float rightValue, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
HorizontalSlider(Single, Single, Single, GUIStyle, GUIStyle, GUILayoutOption[])
Declaration
public static float HorizontalSlider(float value, float leftValue, float rightValue, GUIStyle slider, GUIStyle thumb, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Label(String, GUILayoutOption[])
Declaration
public static void Label(string text, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
Label(String, GUIStyle, GUILayoutOption[])
Declaration
public static void Label(string text, GUIStyle style, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
Label(GUIContent, GUILayoutOption[])
Declaration
public static void Label(GUIContent content, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
Label(GUIContent, GUIStyle, GUILayoutOption[])
Declaration
public static void Label(GUIContent content, GUIStyle style, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
Label(Texture, GUILayoutOption[])
Declaration
public static void Label(Texture image, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
Label(Texture, GUIStyle, GUILayoutOption[])
Declaration
public static void Label(Texture image, GUIStyle style, params GUILayoutOption[] options)
Parameters
|
Improve this Doc
View Source
MaxHeight(Single)
Declaration
public static GUILayoutOption MaxHeight(float maxHeight)
Parameters
Type |
Name |
Description |
Single |
maxHeight |
|
Returns
|
Improve this Doc
View Source
MaxWidth(Single)
Declaration
public static GUILayoutOption MaxWidth(float maxWidth)
Parameters
Type |
Name |
Description |
Single |
maxWidth |
|
Returns
|
Improve this Doc
View Source
MinHeight(Single)
Declaration
public static GUILayoutOption MinHeight(float minHeight)
Parameters
Type |
Name |
Description |
Single |
minHeight |
|
Returns
|
Improve this Doc
View Source
MinWidth(Single)
Declaration
public static GUILayoutOption MinWidth(float minWidth)
Parameters
Type |
Name |
Description |
Single |
minWidth |
|
Returns
|
Improve this Doc
View Source
PasswordField(String, Char, Int32, GUILayoutOption[])
Declaration
public static string PasswordField(string password, char maskChar, int maxLength, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
PasswordField(String, Char, Int32, GUIStyle, GUILayoutOption[])
Declaration
public static string PasswordField(string password, char maskChar, int maxLength, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
PasswordField(String, Char, GUILayoutOption[])
Declaration
public static string PasswordField(string password, char maskChar, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
PasswordField(String, Char, GUIStyle, GUILayoutOption[])
Declaration
public static string PasswordField(string password, char maskChar, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static bool RepeatButton(string text, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static bool RepeatButton(string text, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
RepeatButton(GUIContent, GUILayoutOption[])
Declaration
public static bool RepeatButton(GUIContent content, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
RepeatButton(GUIContent, GUIStyle, GUILayoutOption[])
Declaration
public static bool RepeatButton(GUIContent content, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
RepeatButton(Texture, GUILayoutOption[])
Declaration
public static bool RepeatButton(Texture image, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
RepeatButton(Texture, GUIStyle, GUILayoutOption[])
Declaration
public static bool RepeatButton(Texture image, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
SelectionGrid(Int32, String[], Int32, GUILayoutOption[])
Declaration
public static int SelectionGrid(int selected, string[] texts, int xCount, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
SelectionGrid(Int32, String[], Int32, GUIStyle, GUILayoutOption[])
Declaration
public static int SelectionGrid(int selected, string[] texts, int xCount, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
SelectionGrid(Int32, GUIContent[], Int32, GUILayoutOption[])
Declaration
public static int SelectionGrid(int selected, GUIContent[] content, int xCount, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
SelectionGrid(Int32, GUIContent[], Int32, GUIStyle, GUILayoutOption[])
Declaration
public static int SelectionGrid(int selected, GUIContent[] contents, int xCount, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
SelectionGrid(Int32, Texture[], Int32, GUILayoutOption[])
Declaration
public static int SelectionGrid(int selected, Texture[] images, int xCount, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
SelectionGrid(Int32, Texture[], Int32, GUIStyle, GUILayoutOption[])
Declaration
public static int SelectionGrid(int selected, Texture[] images, int xCount, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Space(Single)
Declaration
public static void Space(float pixels)
Parameters
Type |
Name |
Description |
Single |
pixels |
|
|
Improve this Doc
View Source
TextArea(String, Int32, GUILayoutOption[])
Declaration
public static string TextArea(string text, int maxLength, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
TextArea(String, Int32, GUIStyle, GUILayoutOption[])
Declaration
public static string TextArea(string text, int maxLength, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
TextArea(String, GUILayoutOption[])
Declaration
public static string TextArea(string text, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
TextArea(String, GUIStyle, GUILayoutOption[])
Declaration
public static string TextArea(string text, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
TextField(String, Int32, GUILayoutOption[])
Declaration
public static string TextField(string text, int maxLength, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
TextField(String, Int32, GUIStyle, GUILayoutOption[])
Declaration
public static string TextField(string text, int maxLength, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
TextField(String, GUILayoutOption[])
Declaration
public static string TextField(string text, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
TextField(String, GUIStyle, GUILayoutOption[])
Declaration
public static string TextField(string text, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Toggle(Boolean, String, GUILayoutOption[])
Declaration
public static bool Toggle(bool value, string text, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Toggle(Boolean, String, GUIStyle, GUILayoutOption[])
Declaration
public static bool Toggle(bool value, string text, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Toggle(Boolean, GUIContent, GUILayoutOption[])
Declaration
public static bool Toggle(bool value, GUIContent content, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Toggle(Boolean, GUIContent, GUIStyle, GUILayoutOption[])
Declaration
public static bool Toggle(bool value, GUIContent content, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Toggle(Boolean, Texture, GUILayoutOption[])
Declaration
public static bool Toggle(bool value, Texture image, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Toggle(Boolean, Texture, GUIStyle, GUILayoutOption[])
Declaration
public static bool Toggle(bool value, Texture image, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int Toolbar(int selected, string[] texts, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int Toolbar(int selected, string[] texts, GUIStyle style, GUI.ToolbarButtonSize buttonSize, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static int Toolbar(int selected, string[] texts, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Toolbar(Int32, GUIContent[], GUILayoutOption[])
Declaration
public static int Toolbar(int selected, GUIContent[] contents, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Toolbar(Int32, GUIContent[], GUIStyle, GUI.ToolbarButtonSize, GUILayoutOption[])
Declaration
public static int Toolbar(int selected, GUIContent[] contents, GUIStyle style, GUI.ToolbarButtonSize buttonSize, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Toolbar(Int32, GUIContent[], GUIStyle, GUILayoutOption[])
Declaration
public static int Toolbar(int selected, GUIContent[] contents, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Toolbar(Int32, Texture[], GUILayoutOption[])
Declaration
public static int Toolbar(int selected, Texture[] images, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Toolbar(Int32, Texture[], GUIStyle, GUI.ToolbarButtonSize, GUILayoutOption[])
Declaration
public static int Toolbar(int selected, Texture[] images, GUIStyle style, GUI.ToolbarButtonSize buttonSize, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Toolbar(Int32, Texture[], GUIStyle, GUILayoutOption[])
Declaration
public static int Toolbar(int selected, Texture[] images, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static float VerticalScrollbar(float value, float size, float topValue, float bottomValue, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static float VerticalScrollbar(float value, float size, float topValue, float bottomValue, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
VerticalSlider(Single, Single, Single, GUILayoutOption[])
Declaration
public static float VerticalSlider(float value, float leftValue, float rightValue, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
VerticalSlider(Single, Single, Single, GUIStyle, GUIStyle, GUILayoutOption[])
Declaration
public static float VerticalSlider(float value, float leftValue, float rightValue, GUIStyle slider, GUIStyle thumb, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Width(Single)
Declaration
public static GUILayoutOption Width(float width)
Parameters
Type |
Name |
Description |
Single |
width |
|
Returns
|
Improve this Doc
View Source
Window(Int32, Rect, GUI.WindowFunction, String, GUILayoutOption[])
Declaration
public static Rect Window(int id, Rect screenRect, GUI.WindowFunction func, string text, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Window(Int32, Rect, GUI.WindowFunction, String, GUIStyle, GUILayoutOption[])
Declaration
public static Rect Window(int id, Rect screenRect, GUI.WindowFunction func, string text, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Window(Int32, Rect, GUI.WindowFunction, GUIContent, GUILayoutOption[])
Declaration
public static Rect Window(int id, Rect screenRect, GUI.WindowFunction func, GUIContent content, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Window(Int32, Rect, GUI.WindowFunction, GUIContent, GUIStyle, GUILayoutOption[])
Declaration
public static Rect Window(int id, Rect screenRect, GUI.WindowFunction func, GUIContent content, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Window(Int32, Rect, GUI.WindowFunction, Texture, GUILayoutOption[])
Declaration
public static Rect Window(int id, Rect screenRect, GUI.WindowFunction func, Texture image, params GUILayoutOption[] options)
Parameters
Returns
|
Improve this Doc
View Source
Window(Int32, Rect, GUI.WindowFunction, Texture, GUIStyle, GUILayoutOption[])
Declaration
public static Rect Window(int id, Rect screenRect, GUI.WindowFunction func, Texture image, GUIStyle style, params GUILayoutOption[] options)
Parameters
Returns
Extension Methods