Show / Hide Table of Contents

Class GUI

Inheritance
Object
GUI
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 GUI

Properties

backgroundColor

Declaration
public static Color backgroundColor { get; set; }
Property Value
Type Description
Color

changed

Declaration
public static bool changed { get; set; }
Property Value
Type Description
Boolean

color

Declaration
public static Color color { get; set; }
Property Value
Type Description
Color

contentColor

Declaration
public static Color contentColor { get; set; }
Property Value
Type Description
Color

depth

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

enabled

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

matrix

Declaration
public static Matrix4x4 matrix { get; set; }
Property Value
Type Description
Matrix4x4
| Improve this Doc View Source

mouseTooltip

Declaration
protected static string mouseTooltip { get; }
Property Value
Type Description
String
| Improve this Doc View Source

skin

Declaration
public static GUISkin skin { get; set; }
Property Value
Type Description
GUISkin
| Improve this Doc View Source

tooltip

Declaration
public static string tooltip { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

tooltipRect

Declaration
protected static Rect tooltipRect { get; set; }
Property Value
Type Description
Rect

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
Type Name Description
Rect position
Vector2 scrollOffset
Vector2 renderOffset
Boolean resetOffset
| 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
Type Name Description
Rect position
String text
| Improve this Doc View Source

BeginGroup(Rect, String, GUIStyle)

Declaration
public static void BeginGroup(Rect position, string text, GUIStyle style)
Parameters
Type Name Description
Rect position
String text
GUIStyle style
| Improve this Doc View Source

BeginGroup(Rect, GUIContent)

Declaration
public static void BeginGroup(Rect position, GUIContent content)
Parameters
Type Name Description
Rect position
GUIContent content
| Improve this Doc View Source

BeginGroup(Rect, GUIContent, GUIStyle)

Declaration
public static void BeginGroup(Rect position, GUIContent content, GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent content
GUIStyle style
| Improve this Doc View Source

BeginGroup(Rect, GUIStyle)

Declaration
public static void BeginGroup(Rect position, GUIStyle style)
Parameters
Type Name Description
Rect position
GUIStyle style
| Improve this Doc View Source

BeginGroup(Rect, Texture)

Declaration
public static void BeginGroup(Rect position, Texture image)
Parameters
Type Name Description
Rect position
Texture image
| Improve this Doc View Source

BeginGroup(Rect, Texture, GUIStyle)

Declaration
public static void BeginGroup(Rect position, Texture image, GUIStyle style)
Parameters
Type Name Description
Rect position
Texture image
GUIStyle style
| Improve this Doc View Source

BeginScrollView(Rect, Vector2, Rect)

Declaration
public static Vector2 BeginScrollView(Rect position, Vector2 scrollPosition, Rect viewRect)
Parameters
Type Name Description
Rect position
Vector2 scrollPosition
Rect viewRect
Returns
Type Description
Vector2
| Improve this Doc View Source

BeginScrollView(Rect, Vector2, Rect, Boolean, Boolean)

Declaration
public static Vector2 BeginScrollView(Rect position, Vector2 scrollPosition, Rect viewRect, bool alwaysShowHorizontal, bool alwaysShowVertical)
Parameters
Type Name Description
Rect position
Vector2 scrollPosition
Rect viewRect
Boolean alwaysShowHorizontal
Boolean alwaysShowVertical
Returns
Type Description
Vector2
| Improve this Doc View Source

BeginScrollView(Rect, Vector2, Rect, Boolean, Boolean, GUIStyle, GUIStyle)

Declaration
public static Vector2 BeginScrollView(Rect position, Vector2 scrollPosition, Rect viewRect, bool alwaysShowHorizontal, bool alwaysShowVertical, GUIStyle horizontalScrollbar, GUIStyle verticalScrollbar)
Parameters
Type Name Description
Rect position
Vector2 scrollPosition
Rect viewRect
Boolean alwaysShowHorizontal
Boolean alwaysShowVertical
GUIStyle horizontalScrollbar
GUIStyle verticalScrollbar
Returns
Type Description
Vector2
| Improve this Doc View Source

BeginScrollView(Rect, Vector2, Rect, GUIStyle, GUIStyle)

Declaration
public static Vector2 BeginScrollView(Rect position, Vector2 scrollPosition, Rect viewRect, GUIStyle horizontalScrollbar, GUIStyle verticalScrollbar)
Parameters
Type Name Description
Rect position
Vector2 scrollPosition
Rect viewRect
GUIStyle horizontalScrollbar
GUIStyle verticalScrollbar
Returns
Type Description
Vector2
| Improve this Doc View Source

Box(Rect, String)

Declaration
public static void Box(Rect position, string text)
Parameters
Type Name Description
Rect position
String text
| Improve this Doc View Source

Box(Rect, String, GUIStyle)

Declaration
public static void Box(Rect position, string text, GUIStyle style)
Parameters
Type Name Description
Rect position
String text
GUIStyle style
| Improve this Doc View Source

Box(Rect, GUIContent)

Declaration
public static void Box(Rect position, GUIContent content)
Parameters
Type Name Description
Rect position
GUIContent content
| Improve this Doc View Source

Box(Rect, GUIContent, GUIStyle)

Declaration
public static void Box(Rect position, GUIContent content, GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent content
GUIStyle style
| Improve this Doc View Source

Box(Rect, Texture)

Declaration
public static void Box(Rect position, Texture image)
Parameters
Type Name Description
Rect position
Texture image
| Improve this Doc View Source

Box(Rect, Texture, GUIStyle)

Declaration
public static void Box(Rect position, Texture image, GUIStyle style)
Parameters
Type Name Description
Rect position
Texture image
GUIStyle style

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

Button(Rect, String)

Declaration
public static bool Button(Rect position, string text)
Parameters
Type Name Description
Rect position
String text
Returns
Type Description
Boolean
| Improve this Doc View Source

Button(Rect, String, GUIStyle)

Declaration
public static bool Button(Rect position, string text, GUIStyle style)
Parameters
Type Name Description
Rect position
String text
GUIStyle style
Returns
Type Description
Boolean
| Improve this Doc View Source

Button(Rect, GUIContent)

Declaration
public static bool Button(Rect position, GUIContent content)
Parameters
Type Name Description
Rect position
GUIContent content
Returns
Type Description
Boolean
| Improve this Doc View Source

Button(Rect, GUIContent, GUIStyle)

Declaration
public static bool Button(Rect position, GUIContent content, GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent content
GUIStyle style
Returns
Type Description
Boolean
| Improve this Doc View Source

Button(Rect, Texture)

Declaration
public static bool Button(Rect position, Texture image)
Parameters
Type Name Description
Rect position
Texture image
Returns
Type Description
Boolean
| Improve this Doc View Source

Button(Rect, Texture, GUIStyle)

Declaration
public static bool Button(Rect position, Texture image, GUIStyle style)
Parameters
Type Name Description
Rect position
Texture image
GUIStyle style
Returns
Type Description
Boolean
| Improve this Doc View Source

DoBeginScrollView(Rect, Vector2, Rect, Boolean, Boolean, GUIStyle, GUIStyle, GUIStyle)

Declaration
protected static Vector2 DoBeginScrollView(Rect position, Vector2 scrollPosition, Rect viewRect, bool alwaysShowHorizontal, bool alwaysShowVertical, GUIStyle horizontalScrollbar, GUIStyle verticalScrollbar, GUIStyle background)
Parameters
Type Name Description
Rect position
Vector2 scrollPosition
Rect viewRect
Boolean alwaysShowHorizontal
Boolean alwaysShowVertical
GUIStyle horizontalScrollbar
GUIStyle verticalScrollbar
GUIStyle background
Returns
Type Description
Vector2
| 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
Type Name Description
Rect position
Texture image
| Improve this Doc View Source

DrawTexture(Rect, Texture, ScaleMode)

Declaration
public static void DrawTexture(Rect position, Texture image, ScaleMode scaleMode)
Parameters
Type Name Description
Rect position
Texture image
ScaleMode scaleMode
| Improve this Doc View Source

DrawTexture(Rect, Texture, ScaleMode, Boolean)

Declaration
public static void DrawTexture(Rect position, Texture image, ScaleMode scaleMode, bool alphaBlend)
Parameters
Type Name Description
Rect position
Texture image
ScaleMode scaleMode
Boolean alphaBlend
| 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
Type Name Description
Rect position
Texture image
ScaleMode scaleMode
Boolean alphaBlend
Single imageAspect
| 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
Type Name Description
Rect position
Texture image
ScaleMode scaleMode
Boolean alphaBlend
Single imageAspect
Color color
Single borderWidth
Single borderRadius
| 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
Type Name Description
Rect position
Texture image
ScaleMode scaleMode
Boolean alphaBlend
Single imageAspect
Color color
Vector4 borderWidths
Single borderRadius
| 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
Type Name Description
Rect position
Texture image
ScaleMode scaleMode
Boolean alphaBlend
Single imageAspect
Color color
Vector4 borderWidths
Vector4 borderRadiuses
| Improve this Doc View Source

DrawTextureWithTexCoords(Rect, Texture, Rect)

Declaration
public static void DrawTextureWithTexCoords(Rect position, Texture image, Rect texCoords)
Parameters
Type Name Description
Rect position
Texture image
Rect texCoords
| Improve this Doc View Source

DrawTextureWithTexCoords(Rect, Texture, Rect, Boolean)

Declaration
public static void DrawTextureWithTexCoords(Rect position, Texture image, Rect texCoords, bool alphaBlend)
Parameters
Type Name Description
Rect position
Texture image
Rect texCoords
Boolean alphaBlend
| 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

EndScrollView()

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

EndScrollView(Boolean)

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
Type Description
String
| Improve this Doc View Source

HorizontalScrollbar(Rect, Single, Single, Single, Single)

Declaration
public static float HorizontalScrollbar(Rect position, float value, float size, float leftValue, float rightValue)
Parameters
Type Name Description
Rect position
Single value
Single size
Single leftValue
Single rightValue
Returns
Type Description
Single
| Improve this Doc View Source

HorizontalScrollbar(Rect, Single, Single, Single, Single, GUIStyle)

Declaration
public static float HorizontalScrollbar(Rect position, float value, float size, float leftValue, float rightValue, GUIStyle style)
Parameters
Type Name Description
Rect position
Single value
Single size
Single leftValue
Single rightValue
GUIStyle style
Returns
Type Description
Single
| Improve this Doc View Source

HorizontalSlider(Rect, Single, Single, Single)

Declaration
public static float HorizontalSlider(Rect position, float value, float leftValue, float rightValue)
Parameters
Type Name Description
Rect position
Single value
Single leftValue
Single rightValue
Returns
Type Description
Single
| 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
Type Name Description
Rect position
Single value
Single leftValue
Single rightValue
GUIStyle slider
GUIStyle thumb
Returns
Type Description
Single
| Improve this Doc View Source

Label(Rect, String)

Declaration
public static void Label(Rect position, string text)
Parameters
Type Name Description
Rect position
String text
| Improve this Doc View Source

Label(Rect, String, GUIStyle)

Declaration
public static void Label(Rect position, string text, GUIStyle style)
Parameters
Type Name Description
Rect position
String text
GUIStyle style
| Improve this Doc View Source

Label(Rect, GUIContent)

Declaration
public static void Label(Rect position, GUIContent content)
Parameters
Type Name Description
Rect position
GUIContent content
| Improve this Doc View Source

Label(Rect, GUIContent, GUIStyle)

Declaration
public static void Label(Rect position, GUIContent content, GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent content
GUIStyle style
| Improve this Doc View Source

Label(Rect, Texture)

Declaration
public static void Label(Rect position, Texture image)
Parameters
Type Name Description
Rect position
Texture image
| Improve this Doc View Source

Label(Rect, Texture, GUIStyle)

Declaration
public static void Label(Rect position, Texture image, GUIStyle style)
Parameters
Type Name Description
Rect position
Texture image
GUIStyle style
| 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
Type Name Description
Int32 id
Rect clientRect
GUI.WindowFunction func
String text
Returns
Type Description
Rect
| 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
Type Name Description
Int32 id
Rect clientRect
GUI.WindowFunction func
String text
GUIStyle style
Returns
Type Description
Rect
| 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
Type Name Description
Int32 id
Rect clientRect
GUI.WindowFunction func
GUIContent content
Returns
Type Description
Rect
| 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
Type Name Description
Int32 id
Rect clientRect
GUI.WindowFunction func
GUIContent content
GUIStyle style
Returns
Type Description
Rect
| 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
Type Name Description
Int32 id
Rect clientRect
GUI.WindowFunction func
Texture image
Returns
Type Description
Rect
| 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
Type Name Description
Int32 id
Rect clientRect
GUI.WindowFunction func
Texture image
GUIStyle style
Returns
Type Description
Rect
| Improve this Doc View Source

PasswordField(Rect, String, Char)

Declaration
public static string PasswordField(Rect position, string password, char maskChar)
Parameters
Type Name Description
Rect position
String password
Char maskChar
Returns
Type Description
String
| Improve this Doc View Source

PasswordField(Rect, String, Char, Int32)

Declaration
public static string PasswordField(Rect position, string password, char maskChar, int maxLength)
Parameters
Type Name Description
Rect position
String password
Char maskChar
Int32 maxLength
Returns
Type Description
String
| 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
Type Name Description
Rect position
String password
Char maskChar
Int32 maxLength
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

PasswordField(Rect, String, Char, GUIStyle)

Declaration
public static string PasswordField(Rect position, string password, char maskChar, GUIStyle style)
Parameters
Type Name Description
Rect position
String password
Char maskChar
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

RepeatButton(Rect, String)

Declaration
public static bool RepeatButton(Rect position, string text)
Parameters
Type Name Description
Rect position
String text
Returns
Type Description
Boolean
| Improve this Doc View Source

RepeatButton(Rect, String, GUIStyle)

Declaration
public static bool RepeatButton(Rect position, string text, GUIStyle style)
Parameters
Type Name Description
Rect position
String text
GUIStyle style
Returns
Type Description
Boolean
| Improve this Doc View Source

RepeatButton(Rect, GUIContent)

Declaration
public static bool RepeatButton(Rect position, GUIContent content)
Parameters
Type Name Description
Rect position
GUIContent content
Returns
Type Description
Boolean
| Improve this Doc View Source

RepeatButton(Rect, GUIContent, GUIStyle)

Declaration
public static bool RepeatButton(Rect position, GUIContent content, GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent content
GUIStyle style
Returns
Type Description
Boolean
| Improve this Doc View Source

RepeatButton(Rect, Texture)

Declaration
public static bool RepeatButton(Rect position, Texture image)
Parameters
Type Name Description
Rect position
Texture image
Returns
Type Description
Boolean
| Improve this Doc View Source

RepeatButton(Rect, Texture, GUIStyle)

Declaration
public static bool RepeatButton(Rect position, Texture image, GUIStyle style)
Parameters
Type Name Description
Rect position
Texture image
GUIStyle style
Returns
Type Description
Boolean
| Improve this Doc View Source

ScrollTo(Rect)

Declaration
public static void ScrollTo(Rect position)
Parameters
Type Name Description
Rect position
| Improve this Doc View Source

ScrollTowards(Rect, Single)

Declaration
public static bool ScrollTowards(Rect position, float maxDelta)
Parameters
Type Name Description
Rect position
Single maxDelta
Returns
Type Description
Boolean
| Improve this Doc View Source

SelectionGrid(Rect, Int32, String[], Int32)

Declaration
public static int SelectionGrid(Rect position, int selected, string[] texts, int xCount)
Parameters
Type Name Description
Rect position
Int32 selected
String[] texts
Int32 xCount
Returns
Type Description
Int32
| 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
Type Name Description
Rect position
Int32 selected
String[] texts
Int32 xCount
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

SelectionGrid(Rect, Int32, GUIContent[], Int32)

Declaration
public static int SelectionGrid(Rect position, int selected, GUIContent[] content, int xCount)
Parameters
Type Name Description
Rect position
Int32 selected
GUIContent[] content
Int32 xCount
Returns
Type Description
Int32
| 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
Type Name Description
Rect position
Int32 selected
GUIContent[] contents
Int32 xCount
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

SelectionGrid(Rect, Int32, Texture[], Int32)

Declaration
public static int SelectionGrid(Rect position, int selected, Texture[] images, int xCount)
Parameters
Type Name Description
Rect position
Int32 selected
Texture[] images
Int32 xCount
Returns
Type Description
Int32
| 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
Type Name Description
Rect position
Int32 selected
Texture[] images
Int32 xCount
GUIStyle style
Returns
Type Description
Int32

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
Type Name Description
Rect position
Single value
Single size
Single start
Single end
GUIStyle slider
GUIStyle thumb
Boolean horiz
Int32 id
Returns
Type Description
Single
| Improve this Doc View Source

TextArea(Rect, String)

Declaration
public static string TextArea(Rect position, string text)
Parameters
Type Name Description
Rect position
String text
Returns
Type Description
String
| Improve this Doc View Source

TextArea(Rect, String, Int32)

Declaration
public static string TextArea(Rect position, string text, int maxLength)
Parameters
Type Name Description
Rect position
String text
Int32 maxLength
Returns
Type Description
String
| Improve this Doc View Source

TextArea(Rect, String, Int32, GUIStyle)

Declaration
public static string TextArea(Rect position, string text, int maxLength, GUIStyle style)
Parameters
Type Name Description
Rect position
String text
Int32 maxLength
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

TextArea(Rect, String, GUIStyle)

Declaration
public static string TextArea(Rect position, string text, GUIStyle style)
Parameters
Type Name Description
Rect position
String text
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

TextField(Rect, String)

Declaration
public static string TextField(Rect position, string text)
Parameters
Type Name Description
Rect position
String text
Returns
Type Description
String
| Improve this Doc View Source

TextField(Rect, String, Int32)

Declaration
public static string TextField(Rect position, string text, int maxLength)
Parameters
Type Name Description
Rect position
String text
Int32 maxLength
Returns
Type Description
String
| Improve this Doc View Source

TextField(Rect, String, Int32, GUIStyle)

Declaration
public static string TextField(Rect position, string text, int maxLength, GUIStyle style)
Parameters
Type Name Description
Rect position
String text
Int32 maxLength
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

TextField(Rect, String, GUIStyle)

Declaration
public static string TextField(Rect position, string text, GUIStyle style)
Parameters
Type Name Description
Rect position
String text
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

Toggle(Rect, Boolean, String)

Declaration
public static bool Toggle(Rect position, bool value, string text)
Parameters
Type Name Description
Rect position
Boolean value
String text
Returns
Type Description
Boolean
| Improve this Doc View Source

Toggle(Rect, Boolean, String, GUIStyle)

Declaration
public static bool Toggle(Rect position, bool value, string text, GUIStyle style)
Parameters
Type Name Description
Rect position
Boolean value
String text
GUIStyle style
Returns
Type Description
Boolean
| Improve this Doc View Source

Toggle(Rect, Boolean, GUIContent)

Declaration
public static bool Toggle(Rect position, bool value, GUIContent content)
Parameters
Type Name Description
Rect position
Boolean value
GUIContent content
Returns
Type Description
Boolean
| Improve this Doc View Source

Toggle(Rect, Boolean, GUIContent, GUIStyle)

Declaration
public static bool Toggle(Rect position, bool value, GUIContent content, GUIStyle style)
Parameters
Type Name Description
Rect position
Boolean value
GUIContent content
GUIStyle style
Returns
Type Description
Boolean
| Improve this Doc View Source

Toggle(Rect, Boolean, Texture)

Declaration
public static bool Toggle(Rect position, bool value, Texture image)
Parameters
Type Name Description
Rect position
Boolean value
Texture image
Returns
Type Description
Boolean
| Improve this Doc View Source

Toggle(Rect, Boolean, Texture, GUIStyle)

Declaration
public static bool Toggle(Rect position, bool value, Texture image, GUIStyle style)
Parameters
Type Name Description
Rect position
Boolean value
Texture image
GUIStyle style
Returns
Type Description
Boolean
| 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
Type Name Description
Rect position
Int32 id
Boolean value
GUIContent content
GUIStyle style
Returns
Type Description
Boolean
| Improve this Doc View Source

Toolbar(Rect, Int32, String[])

Declaration
public static int Toolbar(Rect position, int selected, string[] texts)
Parameters
Type Name Description
Rect position
Int32 selected
String[] texts
Returns
Type Description
Int32
| Improve this Doc View Source

Toolbar(Rect, Int32, String[], GUIStyle)

Declaration
public static int Toolbar(Rect position, int selected, string[] texts, GUIStyle style)
Parameters
Type Name Description
Rect position
Int32 selected
String[] texts
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

Toolbar(Rect, Int32, GUIContent[])

Declaration
public static int Toolbar(Rect position, int selected, GUIContent[] contents)
Parameters
Type Name Description
Rect position
Int32 selected
GUIContent[] contents
Returns
Type Description
Int32
| Improve this Doc View Source

Toolbar(Rect, Int32, GUIContent[], GUIStyle)

Declaration
public static int Toolbar(Rect position, int selected, GUIContent[] contents, GUIStyle style)
Parameters
Type Name Description
Rect position
Int32 selected
GUIContent[] contents
GUIStyle style
Returns
Type Description
Int32
| 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
Type Name Description
Rect position
Int32 selected
GUIContent[] contents
GUIStyle style
GUI.ToolbarButtonSize buttonSize
Returns
Type Description
Int32
| Improve this Doc View Source

Toolbar(Rect, Int32, Texture[])

Declaration
public static int Toolbar(Rect position, int selected, Texture[] images)
Parameters
Type Name Description
Rect position
Int32 selected
Texture[] images
Returns
Type Description
Int32
| Improve this Doc View Source

Toolbar(Rect, Int32, Texture[], GUIStyle)

Declaration
public static int Toolbar(Rect position, int selected, Texture[] images, GUIStyle style)
Parameters
Type Name Description
Rect position
Int32 selected
Texture[] images
GUIStyle style
Returns
Type Description
Int32

UnfocusWindow()

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

VerticalScrollbar(Rect, Single, Single, Single, Single)

Declaration
public static float VerticalScrollbar(Rect position, float value, float size, float topValue, float bottomValue)
Parameters
Type Name Description
Rect position
Single value
Single size
Single topValue
Single bottomValue
Returns
Type Description
Single
| Improve this Doc View Source

VerticalScrollbar(Rect, Single, Single, Single, Single, GUIStyle)

Declaration
public static float VerticalScrollbar(Rect position, float value, float size, float topValue, float bottomValue, GUIStyle style)
Parameters
Type Name Description
Rect position
Single value
Single size
Single topValue
Single bottomValue
GUIStyle style
Returns
Type Description
Single
| Improve this Doc View Source

VerticalSlider(Rect, Single, Single, Single)

Declaration
public static float VerticalSlider(Rect position, float value, float topValue, float bottomValue)
Parameters
Type Name Description
Rect position
Single value
Single topValue
Single bottomValue
Returns
Type Description
Single
| 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
Type Name Description
Rect position
Single value
Single topValue
Single bottomValue
GUIStyle slider
GUIStyle thumb
Returns
Type Description
Single
| 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
Type Name Description
Int32 id
Rect clientRect
GUI.WindowFunction func
String text
Returns
Type Description
Rect
| 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
Type Name Description
Int32 id
Rect clientRect
GUI.WindowFunction func
String text
GUIStyle style
Returns
Type Description
Rect
| 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
Type Name Description
Int32 id
Rect clientRect
GUI.WindowFunction func
GUIContent content
Returns
Type Description
Rect
| 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
Type Name Description
Int32 id
Rect clientRect
GUI.WindowFunction func
GUIContent title
GUIStyle style
Returns
Type Description
Rect
| 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
Type Name Description
Int32 id
Rect clientRect
GUI.WindowFunction func
Texture image
Returns
Type Description
Rect
| 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
Type Name Description
Int32 id
Rect clientRect
GUI.WindowFunction func
Texture image
GUIStyle style
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