Show / Hide Table of Contents

Class EditorGUI

Inheritance
Object
EditorGUI
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEditor
Assembly: UnityEditor.dll
Syntax
public sealed class EditorGUI

Properties

| Improve this Doc View Source

actionKey

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

indentLevel

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

showMixedValue

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

Methods

| Improve this Doc View Source

BeginChangeCheck()

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

BeginDisabledGroup(Boolean)

Declaration
public static void BeginDisabledGroup(bool disabled)
Parameters
Type Name Description
Boolean disabled
| Improve this Doc View Source

BeginProperty(Rect, GUIContent, SerializedProperty)

Declaration
public static GUIContent BeginProperty(Rect totalPosition, GUIContent label, SerializedProperty property)
Parameters
Type Name Description
Rect totalPosition
GUIContent label
SerializedProperty property
Returns
Type Description
GUIContent
| Improve this Doc View Source

BoundsField(Rect, String, Bounds)

Declaration
public static Bounds BoundsField(Rect position, string label, Bounds value)
Parameters
Type Name Description
Rect position
String label
Bounds value
Returns
Type Description
Bounds
| Improve this Doc View Source

BoundsField(Rect, Bounds)

Declaration
public static Bounds BoundsField(Rect position, Bounds value)
Parameters
Type Name Description
Rect position
Bounds value
Returns
Type Description
Bounds
| Improve this Doc View Source

BoundsField(Rect, GUIContent, Bounds)

Declaration
public static Bounds BoundsField(Rect position, GUIContent label, Bounds value)
Parameters
Type Name Description
Rect position
GUIContent label
Bounds value
Returns
Type Description
Bounds
| Improve this Doc View Source

BoundsIntField(Rect, String, BoundsInt)

Declaration
public static BoundsInt BoundsIntField(Rect position, string label, BoundsInt value)
Parameters
Type Name Description
Rect position
String label
BoundsInt value
Returns
Type Description
BoundsInt
| Improve this Doc View Source

BoundsIntField(Rect, BoundsInt)

Declaration
public static BoundsInt BoundsIntField(Rect position, BoundsInt value)
Parameters
Type Name Description
Rect position
BoundsInt value
Returns
Type Description
BoundsInt
| Improve this Doc View Source

BoundsIntField(Rect, GUIContent, BoundsInt)

Declaration
public static BoundsInt BoundsIntField(Rect position, GUIContent label, BoundsInt value)
Parameters
Type Name Description
Rect position
GUIContent label
BoundsInt value
Returns
Type Description
BoundsInt
| Improve this Doc View Source

CanCacheInspectorGUI(SerializedProperty)

Declaration
public static bool CanCacheInspectorGUI(SerializedProperty property)
Parameters
Type Name Description
SerializedProperty property
Returns
Type Description
Boolean
| Improve this Doc View Source

ColorField(Rect, String, Color)

Declaration
public static Color ColorField(Rect position, string label, Color value)
Parameters
Type Name Description
Rect position
String label
Color value
Returns
Type Description
Color
| Improve this Doc View Source

ColorField(Rect, Color)

Declaration
public static Color ColorField(Rect position, Color value)
Parameters
Type Name Description
Rect position
Color value
Returns
Type Description
Color
| Improve this Doc View Source

ColorField(Rect, GUIContent, Color)

Declaration
public static Color ColorField(Rect position, GUIContent label, Color value)
Parameters
Type Name Description
Rect position
GUIContent label
Color value
Returns
Type Description
Color
| Improve this Doc View Source

ColorField(Rect, GUIContent, Color, Boolean, Boolean, Boolean)

Declaration
public static Color ColorField(Rect position, GUIContent label, Color value, bool showEyedropper, bool showAlpha, bool hdr)
Parameters
Type Name Description
Rect position
GUIContent label
Color value
Boolean showEyedropper
Boolean showAlpha
Boolean hdr
Returns
Type Description
Color
| Improve this Doc View Source

ColorField(Rect, GUIContent, Color, Boolean, Boolean, Boolean, ColorPickerHDRConfig)

Declaration
[Obsolete("Use EditorGUI.ColorField(Rect position, GUIContent label, Color value, bool showEyedropper, bool showAlpha, bool hdr)")]
public static Color ColorField(Rect position, GUIContent label, Color value, bool showEyedropper, bool showAlpha, bool hdr, ColorPickerHDRConfig hdrConfig)
Parameters
Type Name Description
Rect position
GUIContent label
Color value
Boolean showEyedropper
Boolean showAlpha
Boolean hdr
ColorPickerHDRConfig hdrConfig
Returns
Type Description
Color
| Improve this Doc View Source

CurveField(Rect, String, AnimationCurve)

Declaration
public static AnimationCurve CurveField(Rect position, string label, AnimationCurve value)
Parameters
Type Name Description
Rect position
String label
AnimationCurve value
Returns
Type Description
AnimationCurve
| Improve this Doc View Source

CurveField(Rect, String, AnimationCurve, Color, Rect)

Declaration
public static AnimationCurve CurveField(Rect position, string label, AnimationCurve value, Color color, Rect ranges)
Parameters
Type Name Description
Rect position
String label
AnimationCurve value
Color color
Rect ranges
Returns
Type Description
AnimationCurve
| Improve this Doc View Source

CurveField(Rect, SerializedProperty, Color, Rect)

Declaration
public static void CurveField(Rect position, SerializedProperty property, Color color, Rect ranges)
Parameters
Type Name Description
Rect position
SerializedProperty property
Color color
Rect ranges
| Improve this Doc View Source

CurveField(Rect, SerializedProperty, Color, Rect, GUIContent)

Declaration
public static void CurveField(Rect position, SerializedProperty property, Color color, Rect ranges, GUIContent label)
Parameters
Type Name Description
Rect position
SerializedProperty property
Color color
Rect ranges
GUIContent label
| Improve this Doc View Source

CurveField(Rect, AnimationCurve)

Declaration
public static AnimationCurve CurveField(Rect position, AnimationCurve value)
Parameters
Type Name Description
Rect position
AnimationCurve value
Returns
Type Description
AnimationCurve
| Improve this Doc View Source

CurveField(Rect, AnimationCurve, Color, Rect)

Declaration
public static AnimationCurve CurveField(Rect position, AnimationCurve value, Color color, Rect ranges)
Parameters
Type Name Description
Rect position
AnimationCurve value
Color color
Rect ranges
Returns
Type Description
AnimationCurve
| Improve this Doc View Source

CurveField(Rect, GUIContent, AnimationCurve)

Declaration
public static AnimationCurve CurveField(Rect position, GUIContent label, AnimationCurve value)
Parameters
Type Name Description
Rect position
GUIContent label
AnimationCurve value
Returns
Type Description
AnimationCurve
| Improve this Doc View Source

CurveField(Rect, GUIContent, AnimationCurve, Color, Rect)

Declaration
public static AnimationCurve CurveField(Rect position, GUIContent label, AnimationCurve value, Color color, Rect ranges)
Parameters
Type Name Description
Rect position
GUIContent label
AnimationCurve value
Color color
Rect ranges
Returns
Type Description
AnimationCurve
| Improve this Doc View Source

DelayedDoubleField(Rect, Double)

Declaration
[ExcludeFromDocs]
public static double DelayedDoubleField(Rect position, double value)
Parameters
Type Name Description
Rect position
Double value
Returns
Type Description
Double
| Improve this Doc View Source

DelayedDoubleField(Rect, Double, GUIStyle)

Declaration
public static double DelayedDoubleField(Rect position, double value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
Double value
GUIStyle style
Returns
Type Description
Double
| Improve this Doc View Source

DelayedDoubleField(Rect, String, Double)

Declaration
[ExcludeFromDocs]
public static double DelayedDoubleField(Rect position, string label, double value)
Parameters
Type Name Description
Rect position
String label
Double value
Returns
Type Description
Double
| Improve this Doc View Source

DelayedDoubleField(Rect, String, Double, GUIStyle)

Declaration
public static double DelayedDoubleField(Rect position, string label, double value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
String label
Double value
GUIStyle style
Returns
Type Description
Double
| Improve this Doc View Source

DelayedDoubleField(Rect, GUIContent, Double)

Declaration
[ExcludeFromDocs]
public static double DelayedDoubleField(Rect position, GUIContent label, double value)
Parameters
Type Name Description
Rect position
GUIContent label
Double value
Returns
Type Description
Double
| Improve this Doc View Source

DelayedDoubleField(Rect, GUIContent, Double, GUIStyle)

Declaration
public static double DelayedDoubleField(Rect position, GUIContent label, double value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
Double value
GUIStyle style
Returns
Type Description
Double
| Improve this Doc View Source

DelayedFloatField(Rect, Single)

Declaration
[ExcludeFromDocs]
public static float DelayedFloatField(Rect position, float value)
Parameters
Type Name Description
Rect position
Single value
Returns
Type Description
Single
| Improve this Doc View Source

DelayedFloatField(Rect, Single, GUIStyle)

Declaration
public static float DelayedFloatField(Rect position, float value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
Single value
GUIStyle style
Returns
Type Description
Single
| Improve this Doc View Source

DelayedFloatField(Rect, String, Single)

Declaration
[ExcludeFromDocs]
public static float DelayedFloatField(Rect position, string label, float value)
Parameters
Type Name Description
Rect position
String label
Single value
Returns
Type Description
Single
| Improve this Doc View Source

DelayedFloatField(Rect, String, Single, GUIStyle)

Declaration
public static float DelayedFloatField(Rect position, string label, float value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
String label
Single value
GUIStyle style
Returns
Type Description
Single
| Improve this Doc View Source

DelayedFloatField(Rect, SerializedProperty)

Declaration
[ExcludeFromDocs]
public static void DelayedFloatField(Rect position, SerializedProperty property)
Parameters
Type Name Description
Rect position
SerializedProperty property
| Improve this Doc View Source

DelayedFloatField(Rect, SerializedProperty, GUIContent)

Declaration
public static void DelayedFloatField(Rect position, SerializedProperty property, [DefaultValue("null")] GUIContent label)
Parameters
Type Name Description
Rect position
SerializedProperty property
GUIContent label
| Improve this Doc View Source

DelayedFloatField(Rect, GUIContent, Single)

Declaration
[ExcludeFromDocs]
public static float DelayedFloatField(Rect position, GUIContent label, float value)
Parameters
Type Name Description
Rect position
GUIContent label
Single value
Returns
Type Description
Single
| Improve this Doc View Source

DelayedFloatField(Rect, GUIContent, Single, GUIStyle)

Declaration
public static float DelayedFloatField(Rect position, GUIContent label, float value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
Single value
GUIStyle style
Returns
Type Description
Single
| Improve this Doc View Source

DelayedIntField(Rect, Int32)

Declaration
[ExcludeFromDocs]
public static int DelayedIntField(Rect position, int value)
Parameters
Type Name Description
Rect position
Int32 value
Returns
Type Description
Int32
| Improve this Doc View Source

DelayedIntField(Rect, Int32, GUIStyle)

Declaration
public static int DelayedIntField(Rect position, int value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
Int32 value
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

DelayedIntField(Rect, String, Int32)

Declaration
[ExcludeFromDocs]
public static int DelayedIntField(Rect position, string label, int value)
Parameters
Type Name Description
Rect position
String label
Int32 value
Returns
Type Description
Int32
| Improve this Doc View Source

DelayedIntField(Rect, String, Int32, GUIStyle)

Declaration
public static int DelayedIntField(Rect position, string label, int value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
String label
Int32 value
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

DelayedIntField(Rect, SerializedProperty)

Declaration
[ExcludeFromDocs]
public static void DelayedIntField(Rect position, SerializedProperty property)
Parameters
Type Name Description
Rect position
SerializedProperty property
| Improve this Doc View Source

DelayedIntField(Rect, SerializedProperty, GUIContent)

Declaration
public static void DelayedIntField(Rect position, SerializedProperty property, [DefaultValue("null")] GUIContent label)
Parameters
Type Name Description
Rect position
SerializedProperty property
GUIContent label
| Improve this Doc View Source

DelayedIntField(Rect, GUIContent, Int32)

Declaration
[ExcludeFromDocs]
public static int DelayedIntField(Rect position, GUIContent label, int value)
Parameters
Type Name Description
Rect position
GUIContent label
Int32 value
Returns
Type Description
Int32
| Improve this Doc View Source

DelayedIntField(Rect, GUIContent, Int32, GUIStyle)

Declaration
public static int DelayedIntField(Rect position, GUIContent label, int value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
Int32 value
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

DelayedTextField(Rect, String)

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

DelayedTextField(Rect, String, String)

Declaration
[ExcludeFromDocs]
public static string DelayedTextField(Rect position, string label, string text)
Parameters
Type Name Description
Rect position
String label
String text
Returns
Type Description
String
| Improve this Doc View Source

DelayedTextField(Rect, String, String, GUIStyle)

Declaration
public static string DelayedTextField(Rect position, string label, string text, [DefaultValue("EditorStyles.textField")] GUIStyle style)
Parameters
Type Name Description
Rect position
String label
String text
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

DelayedTextField(Rect, String, GUIStyle)

Declaration
public static string DelayedTextField(Rect position, string text, [DefaultValue("EditorStyles.textField")] GUIStyle style)
Parameters
Type Name Description
Rect position
String text
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

DelayedTextField(Rect, SerializedProperty)

Declaration
[ExcludeFromDocs]
public static void DelayedTextField(Rect position, SerializedProperty property)
Parameters
Type Name Description
Rect position
SerializedProperty property
| Improve this Doc View Source

DelayedTextField(Rect, SerializedProperty, GUIContent)

Declaration
public static void DelayedTextField(Rect position, SerializedProperty property, [DefaultValue("null")] GUIContent label)
Parameters
Type Name Description
Rect position
SerializedProperty property
GUIContent label
| Improve this Doc View Source

DelayedTextField(Rect, GUIContent, Int32, String)

Declaration
[ExcludeFromDocs]
public static string DelayedTextField(Rect position, GUIContent label, int controlId, string text)
Parameters
Type Name Description
Rect position
GUIContent label
Int32 controlId
String text
Returns
Type Description
String
| Improve this Doc View Source

DelayedTextField(Rect, GUIContent, Int32, String, GUIStyle)

Declaration
public static string DelayedTextField(Rect position, GUIContent label, int controlId, string text, [DefaultValue("EditorStyles.textField")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
Int32 controlId
String text
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

DelayedTextField(Rect, GUIContent, String)

Declaration
[ExcludeFromDocs]
public static string DelayedTextField(Rect position, GUIContent label, string text)
Parameters
Type Name Description
Rect position
GUIContent label
String text
Returns
Type Description
String
| Improve this Doc View Source

DelayedTextField(Rect, GUIContent, String, GUIStyle)

Declaration
public static string DelayedTextField(Rect position, GUIContent label, string text, [DefaultValue("EditorStyles.textField")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
String text
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

DoPasswordField(Int32, Rect, String, GUIStyle)

Declaration
[Obsolete("Use PasswordField instead.")]
public static string DoPasswordField(int id, Rect position, string password, GUIStyle style)
Parameters
Type Name Description
Int32 id
Rect position
String password
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

DoPasswordField(Int32, Rect, GUIContent, String, GUIStyle)

Declaration
[Obsolete("Use PasswordField instead.")]
public static string DoPasswordField(int id, Rect position, GUIContent label, string password, GUIStyle style)
Parameters
Type Name Description
Int32 id
Rect position
GUIContent label
String password
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

DoubleField(Rect, Double)

Declaration
[ExcludeFromDocs]
public static double DoubleField(Rect position, double value)
Parameters
Type Name Description
Rect position
Double value
Returns
Type Description
Double
| Improve this Doc View Source

DoubleField(Rect, Double, GUIStyle)

Declaration
public static double DoubleField(Rect position, double value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
Double value
GUIStyle style
Returns
Type Description
Double
| Improve this Doc View Source

DoubleField(Rect, String, Double)

Declaration
[ExcludeFromDocs]
public static double DoubleField(Rect position, string label, double value)
Parameters
Type Name Description
Rect position
String label
Double value
Returns
Type Description
Double
| Improve this Doc View Source

DoubleField(Rect, String, Double, GUIStyle)

Declaration
public static double DoubleField(Rect position, string label, double value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
String label
Double value
GUIStyle style
Returns
Type Description
Double
| Improve this Doc View Source

DoubleField(Rect, GUIContent, Double)

Declaration
[ExcludeFromDocs]
public static double DoubleField(Rect position, GUIContent label, double value)
Parameters
Type Name Description
Rect position
GUIContent label
Double value
Returns
Type Description
Double
| Improve this Doc View Source

DoubleField(Rect, GUIContent, Double, GUIStyle)

Declaration
public static double DoubleField(Rect position, GUIContent label, double value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
Double value
GUIStyle style
Returns
Type Description
Double
| Improve this Doc View Source

DrawPreviewTexture(Rect, Texture)

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

DrawPreviewTexture(Rect, Texture, Material)

Declaration
[ExcludeFromDocs]
public static void DrawPreviewTexture(Rect position, Texture image, Material mat)
Parameters
Type Name Description
Rect position
Texture image
Material mat
| Improve this Doc View Source

DrawPreviewTexture(Rect, Texture, Material, ScaleMode)

Declaration
[ExcludeFromDocs]
public static void DrawPreviewTexture(Rect position, Texture image, Material mat, ScaleMode scaleMode)
Parameters
Type Name Description
Rect position
Texture image
Material mat
ScaleMode scaleMode
| Improve this Doc View Source

DrawPreviewTexture(Rect, Texture, Material, ScaleMode, Single)

Declaration
[ExcludeFromDocs]
public static void DrawPreviewTexture(Rect position, Texture image, Material mat, ScaleMode scaleMode, float imageAspect)
Parameters
Type Name Description
Rect position
Texture image
Material mat
ScaleMode scaleMode
Single imageAspect
| Improve this Doc View Source

DrawPreviewTexture(Rect, Texture, Material, ScaleMode, Single, Single)

Declaration
[ExcludeFromDocs]
public static void DrawPreviewTexture(Rect position, Texture image, Material mat, ScaleMode scaleMode, float imageAspect, float mipLevel)
Parameters
Type Name Description
Rect position
Texture image
Material mat
ScaleMode scaleMode
Single imageAspect
Single mipLevel
| Improve this Doc View Source

DrawPreviewTexture(Rect, Texture, Material, ScaleMode, Single, Single, ColorWriteMask)

Declaration
public static void DrawPreviewTexture(Rect position, Texture image, [DefaultValue("null")] Material mat, [DefaultValue("ScaleMode.StretchToFill")] ScaleMode scaleMode, [DefaultValue("0")] float imageAspect, [DefaultValue("-1")] float mipLevel, [DefaultValue("ColorWriteMask.All")] ColorWriteMask colorWriteMask)
Parameters
Type Name Description
Rect position
Texture image
Material mat
ScaleMode scaleMode
Single imageAspect
Single mipLevel
ColorWriteMask colorWriteMask
| Improve this Doc View Source

DrawRect(Rect, Color)

Declaration
public static void DrawRect(Rect rect, Color color)
Parameters
Type Name Description
Rect rect
Color color
| Improve this Doc View Source

DrawTextureAlpha(Rect, Texture)

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

DrawTextureAlpha(Rect, Texture, ScaleMode)

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

DrawTextureAlpha(Rect, Texture, ScaleMode, Single)

Declaration
[ExcludeFromDocs]
public static void DrawTextureAlpha(Rect position, Texture image, ScaleMode scaleMode, float imageAspect)
Parameters
Type Name Description
Rect position
Texture image
ScaleMode scaleMode
Single imageAspect
| Improve this Doc View Source

DrawTextureAlpha(Rect, Texture, ScaleMode, Single, Single)

Declaration
public static void DrawTextureAlpha(Rect position, Texture image, [DefaultValue("ScaleMode.StretchToFill")] ScaleMode scaleMode, [DefaultValue("0")] float imageAspect, [DefaultValue("-1")] float mipLevel)
Parameters
Type Name Description
Rect position
Texture image
ScaleMode scaleMode
Single imageAspect
Single mipLevel
| Improve this Doc View Source

DrawTextureTransparent(Rect, Texture)

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

DrawTextureTransparent(Rect, Texture, ScaleMode)

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

DrawTextureTransparent(Rect, Texture, ScaleMode, Single)

Declaration
[ExcludeFromDocs]
public static void DrawTextureTransparent(Rect position, Texture image, ScaleMode scaleMode, float imageAspect)
Parameters
Type Name Description
Rect position
Texture image
ScaleMode scaleMode
Single imageAspect
| Improve this Doc View Source

DrawTextureTransparent(Rect, Texture, ScaleMode, Single, Single)

Declaration
[ExcludeFromDocs]
public static void DrawTextureTransparent(Rect position, Texture image, ScaleMode scaleMode, float imageAspect, float mipLevel)
Parameters
Type Name Description
Rect position
Texture image
ScaleMode scaleMode
Single imageAspect
Single mipLevel
| Improve this Doc View Source

DrawTextureTransparent(Rect, Texture, ScaleMode, Single, Single, ColorWriteMask)

Declaration
public static void DrawTextureTransparent(Rect position, Texture image, [DefaultValue("ScaleMode.StretchToFill")] ScaleMode scaleMode, [DefaultValue("0")] float imageAspect, [DefaultValue("-1")] float mipLevel, [DefaultValue("ColorWriteMask.All")] ColorWriteMask colorWriteMask)
Parameters
Type Name Description
Rect position
Texture image
ScaleMode scaleMode
Single imageAspect
Single mipLevel
ColorWriteMask colorWriteMask
| Improve this Doc View Source

DropdownButton(Rect, GUIContent, FocusType)

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

DropdownButton(Rect, GUIContent, FocusType, GUIStyle)

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

DropShadowLabel(Rect, String)

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

DropShadowLabel(Rect, String, GUIStyle)

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

DropShadowLabel(Rect, GUIContent)

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

DropShadowLabel(Rect, GUIContent, GUIStyle)

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

EndChangeCheck()

Declaration
public static bool EndChangeCheck()
Returns
Type Description
Boolean
| Improve this Doc View Source

EndDisabledGroup()

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

EndProperty()

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

EnumFlagsField(Rect, Enum)

Declaration
public static Enum EnumFlagsField(Rect position, Enum enumValue)
Parameters
Type Name Description
Rect position
Enum enumValue
Returns
Type Description
Enum
| Improve this Doc View Source

EnumFlagsField(Rect, Enum, GUIStyle)

Declaration
public static Enum EnumFlagsField(Rect position, Enum enumValue, GUIStyle style)
Parameters
Type Name Description
Rect position
Enum enumValue
GUIStyle style
Returns
Type Description
Enum
| Improve this Doc View Source

EnumFlagsField(Rect, String, Enum)

Declaration
public static Enum EnumFlagsField(Rect position, string label, Enum enumValue)
Parameters
Type Name Description
Rect position
String label
Enum enumValue
Returns
Type Description
Enum
| Improve this Doc View Source

EnumFlagsField(Rect, String, Enum, GUIStyle)

Declaration
public static Enum EnumFlagsField(Rect position, string label, Enum enumValue, GUIStyle style)
Parameters
Type Name Description
Rect position
String label
Enum enumValue
GUIStyle style
Returns
Type Description
Enum
| Improve this Doc View Source

EnumFlagsField(Rect, GUIContent, Enum)

Declaration
public static Enum EnumFlagsField(Rect position, GUIContent label, Enum enumValue)
Parameters
Type Name Description
Rect position
GUIContent label
Enum enumValue
Returns
Type Description
Enum
| Improve this Doc View Source

EnumFlagsField(Rect, GUIContent, Enum, Boolean, GUIStyle)

Declaration
public static Enum EnumFlagsField(Rect position, GUIContent label, Enum enumValue, [DefaultValue("false")] bool includeObsolete, [DefaultValue("null")] GUIStyle style = null)
Parameters
Type Name Description
Rect position
GUIContent label
Enum enumValue
Boolean includeObsolete
GUIStyle style
Returns
Type Description
Enum
| Improve this Doc View Source

EnumFlagsField(Rect, GUIContent, Enum, GUIStyle)

Declaration
public static Enum EnumFlagsField(Rect position, GUIContent label, Enum enumValue, GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
Enum enumValue
GUIStyle style
Returns
Type Description
Enum
| Improve this Doc View Source

EnumMaskField(Rect, Enum)

Declaration
[Obsolete("EnumMaskField has been deprecated. Use EnumFlagsField instead.")]
public static Enum EnumMaskField(Rect position, Enum enumValue)
Parameters
Type Name Description
Rect position
Enum enumValue
Returns
Type Description
Enum
| Improve this Doc View Source

EnumMaskField(Rect, Enum, GUIStyle)

Declaration
[Obsolete("EnumMaskField has been deprecated. Use EnumFlagsField instead.")]
public static Enum EnumMaskField(Rect position, Enum enumValue, GUIStyle style)
Parameters
Type Name Description
Rect position
Enum enumValue
GUIStyle style
Returns
Type Description
Enum
| Improve this Doc View Source

EnumMaskField(Rect, String, Enum)

Declaration
[Obsolete("EnumMaskField has been deprecated. Use EnumFlagsField instead.")]
public static Enum EnumMaskField(Rect position, string label, Enum enumValue)
Parameters
Type Name Description
Rect position
String label
Enum enumValue
Returns
Type Description
Enum
| Improve this Doc View Source

EnumMaskField(Rect, String, Enum, GUIStyle)

Declaration
[Obsolete("EnumMaskField has been deprecated. Use EnumFlagsField instead.")]
public static Enum EnumMaskField(Rect position, string label, Enum enumValue, GUIStyle style)
Parameters
Type Name Description
Rect position
String label
Enum enumValue
GUIStyle style
Returns
Type Description
Enum
| Improve this Doc View Source

EnumMaskField(Rect, GUIContent, Enum)

Declaration
[Obsolete("EnumMaskField has been deprecated. Use EnumFlagsField instead.")]
public static Enum EnumMaskField(Rect position, GUIContent label, Enum enumValue)
Parameters
Type Name Description
Rect position
GUIContent label
Enum enumValue
Returns
Type Description
Enum
| Improve this Doc View Source

EnumMaskField(Rect, GUIContent, Enum, GUIStyle)

Declaration
[Obsolete("EnumMaskField has been deprecated. Use EnumFlagsField instead.")]
public static Enum EnumMaskField(Rect position, GUIContent label, Enum enumValue, GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
Enum enumValue
GUIStyle style
Returns
Type Description
Enum
| Improve this Doc View Source

EnumMaskPopup(Rect, String, Enum)

Declaration
[Obsolete("EnumMaskPopup has been deprecated. Use EnumFlagsField instead.")]
public static Enum EnumMaskPopup(Rect position, string label, Enum selected)
Parameters
Type Name Description
Rect position
String label
Enum selected
Returns
Type Description
Enum
| Improve this Doc View Source

EnumMaskPopup(Rect, String, Enum, GUIStyle)

Declaration
[Obsolete("EnumMaskPopup has been deprecated. Use EnumFlagsField instead.")]
public static Enum EnumMaskPopup(Rect position, string label, Enum selected, GUIStyle style)
Parameters
Type Name Description
Rect position
String label
Enum selected
GUIStyle style
Returns
Type Description
Enum
| Improve this Doc View Source

EnumMaskPopup(Rect, GUIContent, Enum)

Declaration
[Obsolete("EnumMaskPopup has been deprecated. Use EnumFlagsField instead.")]
public static Enum EnumMaskPopup(Rect position, GUIContent label, Enum selected)
Parameters
Type Name Description
Rect position
GUIContent label
Enum selected
Returns
Type Description
Enum
| Improve this Doc View Source

EnumMaskPopup(Rect, GUIContent, Enum, GUIStyle)

Declaration
[Obsolete("EnumMaskPopup has been deprecated. Use EnumFlagsField instead.")]
public static Enum EnumMaskPopup(Rect position, GUIContent label, Enum selected, GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
Enum selected
GUIStyle style
Returns
Type Description
Enum
| Improve this Doc View Source

EnumPopup(Rect, Enum)

Declaration
[ExcludeFromDocs]
public static Enum EnumPopup(Rect position, Enum selected)
Parameters
Type Name Description
Rect position
Enum selected
Returns
Type Description
Enum
| Improve this Doc View Source

EnumPopup(Rect, Enum, GUIStyle)

Declaration
public static Enum EnumPopup(Rect position, Enum selected, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
Enum selected
GUIStyle style
Returns
Type Description
Enum
| Improve this Doc View Source

EnumPopup(Rect, String, Enum)

Declaration
[ExcludeFromDocs]
public static Enum EnumPopup(Rect position, string label, Enum selected)
Parameters
Type Name Description
Rect position
String label
Enum selected
Returns
Type Description
Enum
| Improve this Doc View Source

EnumPopup(Rect, String, Enum, GUIStyle)

Declaration
public static Enum EnumPopup(Rect position, string label, Enum selected, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
String label
Enum selected
GUIStyle style
Returns
Type Description
Enum
| Improve this Doc View Source

EnumPopup(Rect, GUIContent, Enum)

Declaration
[ExcludeFromDocs]
public static Enum EnumPopup(Rect position, GUIContent label, Enum selected)
Parameters
Type Name Description
Rect position
GUIContent label
Enum selected
Returns
Type Description
Enum
| Improve this Doc View Source

EnumPopup(Rect, GUIContent, Enum, Func<Enum, Boolean>, Boolean, GUIStyle)

Declaration
public static Enum EnumPopup(Rect position, GUIContent label, Enum selected, [DefaultValue("null")] Func<Enum, bool> checkEnabled, [DefaultValue("false")] bool includeObsolete = false, [DefaultValue("null")] GUIStyle style = null)
Parameters
Type Name Description
Rect position
GUIContent label
Enum selected
Func<Enum, Boolean> checkEnabled
Boolean includeObsolete
GUIStyle style
Returns
Type Description
Enum
| Improve this Doc View Source

EnumPopup(Rect, GUIContent, Enum, GUIStyle)

Declaration
public static Enum EnumPopup(Rect position, GUIContent label, Enum selected, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
Enum selected
GUIStyle style
Returns
Type Description
Enum
| Improve this Doc View Source

FloatField(Rect, Single)

Declaration
[ExcludeFromDocs]
public static float FloatField(Rect position, float value)
Parameters
Type Name Description
Rect position
Single value
Returns
Type Description
Single
| Improve this Doc View Source

FloatField(Rect, Single, GUIStyle)

Declaration
public static float FloatField(Rect position, float value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
Single value
GUIStyle style
Returns
Type Description
Single
| Improve this Doc View Source

FloatField(Rect, String, Single)

Declaration
[ExcludeFromDocs]
public static float FloatField(Rect position, string label, float value)
Parameters
Type Name Description
Rect position
String label
Single value
Returns
Type Description
Single
| Improve this Doc View Source

FloatField(Rect, String, Single, GUIStyle)

Declaration
public static float FloatField(Rect position, string label, float value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
String label
Single value
GUIStyle style
Returns
Type Description
Single
| Improve this Doc View Source

FloatField(Rect, GUIContent, Single)

Declaration
[ExcludeFromDocs]
public static float FloatField(Rect position, GUIContent label, float value)
Parameters
Type Name Description
Rect position
GUIContent label
Single value
Returns
Type Description
Single
| Improve this Doc View Source

FloatField(Rect, GUIContent, Single, GUIStyle)

Declaration
public static float FloatField(Rect position, GUIContent label, float value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
Single value
GUIStyle style
Returns
Type Description
Single
| Improve this Doc View Source

FocusTextInControl(String)

Declaration
public static void FocusTextInControl(string name)
Parameters
Type Name Description
String name
| Improve this Doc View Source

Foldout(Rect, Boolean, String)

Declaration
[ExcludeFromDocs]
public static bool Foldout(Rect position, bool foldout, string content)
Parameters
Type Name Description
Rect position
Boolean foldout
String content
Returns
Type Description
Boolean
| Improve this Doc View Source

Foldout(Rect, Boolean, String, Boolean)

Declaration
[ExcludeFromDocs]
public static bool Foldout(Rect position, bool foldout, string content, bool toggleOnLabelClick)
Parameters
Type Name Description
Rect position
Boolean foldout
String content
Boolean toggleOnLabelClick
Returns
Type Description
Boolean
| Improve this Doc View Source

Foldout(Rect, Boolean, String, Boolean, GUIStyle)

Declaration
public static bool Foldout(Rect position, bool foldout, string content, bool toggleOnLabelClick, [DefaultValue("EditorStyles.foldout")] GUIStyle style)
Parameters
Type Name Description
Rect position
Boolean foldout
String content
Boolean toggleOnLabelClick
GUIStyle style
Returns
Type Description
Boolean
| Improve this Doc View Source

Foldout(Rect, Boolean, String, GUIStyle)

Declaration
public static bool Foldout(Rect position, bool foldout, string content, [DefaultValue("EditorStyles.foldout")] GUIStyle style)
Parameters
Type Name Description
Rect position
Boolean foldout
String content
GUIStyle style
Returns
Type Description
Boolean
| Improve this Doc View Source

Foldout(Rect, Boolean, GUIContent)

Declaration
[ExcludeFromDocs]
public static bool Foldout(Rect position, bool foldout, GUIContent content)
Parameters
Type Name Description
Rect position
Boolean foldout
GUIContent content
Returns
Type Description
Boolean
| Improve this Doc View Source

Foldout(Rect, Boolean, GUIContent, Boolean)

Declaration
[ExcludeFromDocs]
public static bool Foldout(Rect position, bool foldout, GUIContent content, bool toggleOnLabelClick)
Parameters
Type Name Description
Rect position
Boolean foldout
GUIContent content
Boolean toggleOnLabelClick
Returns
Type Description
Boolean
| Improve this Doc View Source

Foldout(Rect, Boolean, GUIContent, Boolean, GUIStyle)

Declaration
public static bool Foldout(Rect position, bool foldout, GUIContent content, bool toggleOnLabelClick, [DefaultValue("EditorStyles.foldout")] GUIStyle style)
Parameters
Type Name Description
Rect position
Boolean foldout
GUIContent content
Boolean toggleOnLabelClick
GUIStyle style
Returns
Type Description
Boolean
| Improve this Doc View Source

Foldout(Rect, Boolean, GUIContent, GUIStyle)

Declaration
public static bool Foldout(Rect position, bool foldout, GUIContent content, [DefaultValue("EditorStyles.foldout")] GUIStyle style)
Parameters
Type Name Description
Rect position
Boolean foldout
GUIContent content
GUIStyle style
Returns
Type Description
Boolean
| Improve this Doc View Source

GetPropertyHeight(SerializedProperty)

Declaration
[ExcludeFromDocs]
public static float GetPropertyHeight(SerializedProperty property)
Parameters
Type Name Description
SerializedProperty property
Returns
Type Description
Single
| Improve this Doc View Source

GetPropertyHeight(SerializedProperty, Boolean)

Declaration
public static float GetPropertyHeight(SerializedProperty property, bool includeChildren)
Parameters
Type Name Description
SerializedProperty property
Boolean includeChildren
Returns
Type Description
Single
| Improve this Doc View Source

GetPropertyHeight(SerializedProperty, GUIContent)

Declaration
[ExcludeFromDocs]
public static float GetPropertyHeight(SerializedProperty property, GUIContent label)
Parameters
Type Name Description
SerializedProperty property
GUIContent label
Returns
Type Description
Single
| Improve this Doc View Source

GetPropertyHeight(SerializedProperty, GUIContent, Boolean)

Declaration
public static float GetPropertyHeight(SerializedProperty property, [DefaultValue("null")] GUIContent label, [DefaultValue("true")] bool includeChildren)
Parameters
Type Name Description
SerializedProperty property
GUIContent label
Boolean includeChildren
Returns
Type Description
Single
| Improve this Doc View Source

GetPropertyHeight(SerializedPropertyType, GUIContent)

Declaration
public static float GetPropertyHeight(SerializedPropertyType type, GUIContent label)
Parameters
Type Name Description
SerializedPropertyType type
GUIContent label
Returns
Type Description
Single
| Improve this Doc View Source

GradientField(Rect, String, Gradient)

Declaration
public static Gradient GradientField(Rect position, string label, Gradient gradient)
Parameters
Type Name Description
Rect position
String label
Gradient gradient
Returns
Type Description
Gradient
| Improve this Doc View Source

GradientField(Rect, Gradient)

Declaration
public static Gradient GradientField(Rect position, Gradient gradient)
Parameters
Type Name Description
Rect position
Gradient gradient
Returns
Type Description
Gradient
| Improve this Doc View Source

GradientField(Rect, GUIContent, Gradient)

Declaration
public static Gradient GradientField(Rect position, GUIContent label, Gradient gradient)
Parameters
Type Name Description
Rect position
GUIContent label
Gradient gradient
Returns
Type Description
Gradient
| Improve this Doc View Source

GradientField(Rect, GUIContent, Gradient, Boolean)

Declaration
public static Gradient GradientField(Rect position, GUIContent label, Gradient gradient, bool hdr)
Parameters
Type Name Description
Rect position
GUIContent label
Gradient gradient
Boolean hdr
Returns
Type Description
Gradient
| Improve this Doc View Source

HandlePrefixLabel(Rect, Rect, GUIContent)

Declaration
[ExcludeFromDocs]
public static void HandlePrefixLabel(Rect totalPosition, Rect labelPosition, GUIContent label)
Parameters
Type Name Description
Rect totalPosition
Rect labelPosition
GUIContent label
| Improve this Doc View Source

HandlePrefixLabel(Rect, Rect, GUIContent, Int32)

Declaration
[ExcludeFromDocs]
public static void HandlePrefixLabel(Rect totalPosition, Rect labelPosition, GUIContent label, int id)
Parameters
Type Name Description
Rect totalPosition
Rect labelPosition
GUIContent label
Int32 id
| Improve this Doc View Source

HandlePrefixLabel(Rect, Rect, GUIContent, Int32, GUIStyle)

Declaration
public static void HandlePrefixLabel(Rect totalPosition, Rect labelPosition, GUIContent label, [DefaultValue("0")] int id, [DefaultValue("EditorStyles.label")] GUIStyle style)
Parameters
Type Name Description
Rect totalPosition
Rect labelPosition
GUIContent label
Int32 id
GUIStyle style
| Improve this Doc View Source

HelpBox(Rect, String, MessageType)

Declaration
public static void HelpBox(Rect position, string message, MessageType type)
Parameters
Type Name Description
Rect position
String message
MessageType type
| Improve this Doc View Source

IndentedRect(Rect)

Declaration
public static Rect IndentedRect(Rect source)
Parameters
Type Name Description
Rect source
Returns
Type Description
Rect
| Improve this Doc View Source

InspectorTitlebar(Rect, Boolean, Editor)

Declaration
public static bool InspectorTitlebar(Rect position, bool foldout, Editor editor)
Parameters
Type Name Description
Rect position
Boolean foldout
Editor editor
Returns
Type Description
Boolean
| Improve this Doc View Source

InspectorTitlebar(Rect, Boolean, Object, Boolean)

Declaration
public static bool InspectorTitlebar(Rect position, bool foldout, Object targetObj, bool expandable)
Parameters
Type Name Description
Rect position
Boolean foldout
Object targetObj
Boolean expandable
Returns
Type Description
Boolean
| Improve this Doc View Source

InspectorTitlebar(Rect, Boolean, Object[], Boolean)

Declaration
public static bool InspectorTitlebar(Rect position, bool foldout, Object[] targetObjs, bool expandable)
Parameters
Type Name Description
Rect position
Boolean foldout
Object[] targetObjs
Boolean expandable
Returns
Type Description
Boolean
| Improve this Doc View Source

InspectorTitlebar(Rect, Object[])

Declaration
public static void InspectorTitlebar(Rect position, Object[] targetObjs)
Parameters
Type Name Description
Rect position
Object[] targetObjs
| Improve this Doc View Source

IntField(Rect, Int32)

Declaration
[ExcludeFromDocs]
public static int IntField(Rect position, int value)
Parameters
Type Name Description
Rect position
Int32 value
Returns
Type Description
Int32
| Improve this Doc View Source

IntField(Rect, Int32, GUIStyle)

Declaration
public static int IntField(Rect position, int value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
Int32 value
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

IntField(Rect, String, Int32)

Declaration
[ExcludeFromDocs]
public static int IntField(Rect position, string label, int value)
Parameters
Type Name Description
Rect position
String label
Int32 value
Returns
Type Description
Int32
| Improve this Doc View Source

IntField(Rect, String, Int32, GUIStyle)

Declaration
public static int IntField(Rect position, string label, int value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
String label
Int32 value
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

IntField(Rect, GUIContent, Int32)

Declaration
[ExcludeFromDocs]
public static int IntField(Rect position, GUIContent label, int value)
Parameters
Type Name Description
Rect position
GUIContent label
Int32 value
Returns
Type Description
Int32
| Improve this Doc View Source

IntField(Rect, GUIContent, Int32, GUIStyle)

Declaration
public static int IntField(Rect position, GUIContent label, int value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
Int32 value
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

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

Declaration
[ExcludeFromDocs]
public static int IntPopup(Rect position, int selectedValue, string[] displayedOptions, int[] optionValues)
Parameters
Type Name Description
Rect position
Int32 selectedValue
String[] displayedOptions
Int32[] optionValues
Returns
Type Description
Int32
| Improve this Doc View Source

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

Declaration
public static int IntPopup(Rect position, int selectedValue, string[] displayedOptions, int[] optionValues, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
Int32 selectedValue
String[] displayedOptions
Int32[] optionValues
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

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

Declaration
[ExcludeFromDocs]
public static int IntPopup(Rect position, int selectedValue, GUIContent[] displayedOptions, int[] optionValues)
Parameters
Type Name Description
Rect position
Int32 selectedValue
GUIContent[] displayedOptions
Int32[] optionValues
Returns
Type Description
Int32
| Improve this Doc View Source

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

Declaration
public static int IntPopup(Rect position, int selectedValue, GUIContent[] displayedOptions, int[] optionValues, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
Int32 selectedValue
GUIContent[] displayedOptions
Int32[] optionValues
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

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

Declaration
[ExcludeFromDocs]
public static int IntPopup(Rect position, string label, int selectedValue, string[] displayedOptions, int[] optionValues)
Parameters
Type Name Description
Rect position
String label
Int32 selectedValue
String[] displayedOptions
Int32[] optionValues
Returns
Type Description
Int32
| Improve this Doc View Source

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

Declaration
public static int IntPopup(Rect position, string label, int selectedValue, string[] displayedOptions, int[] optionValues, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
String label
Int32 selectedValue
String[] displayedOptions
Int32[] optionValues
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

IntPopup(Rect, SerializedProperty, GUIContent[], Int32[])

Declaration
[ExcludeFromDocs]
public static void IntPopup(Rect position, SerializedProperty property, GUIContent[] displayedOptions, int[] optionValues)
Parameters
Type Name Description
Rect position
SerializedProperty property
GUIContent[] displayedOptions
Int32[] optionValues
| Improve this Doc View Source

IntPopup(Rect, SerializedProperty, GUIContent[], Int32[], GUIContent)

Declaration
public static void IntPopup(Rect position, SerializedProperty property, GUIContent[] displayedOptions, int[] optionValues, [DefaultValue("null")] GUIContent label)
Parameters
Type Name Description
Rect position
SerializedProperty property
GUIContent[] displayedOptions
Int32[] optionValues
GUIContent label
| Improve this Doc View Source

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

Declaration
[ExcludeFromDocs]
public static int IntPopup(Rect position, GUIContent label, int selectedValue, GUIContent[] displayedOptions, int[] optionValues)
Parameters
Type Name Description
Rect position
GUIContent label
Int32 selectedValue
GUIContent[] displayedOptions
Int32[] optionValues
Returns
Type Description
Int32
| Improve this Doc View Source

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

Declaration
public static int IntPopup(Rect position, GUIContent label, int selectedValue, GUIContent[] displayedOptions, int[] optionValues, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
Int32 selectedValue
GUIContent[] displayedOptions
Int32[] optionValues
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

IntSlider(Rect, Int32, Int32, Int32)

Declaration
public static int IntSlider(Rect position, int value, int leftValue, int rightValue)
Parameters
Type Name Description
Rect position
Int32 value
Int32 leftValue
Int32 rightValue
Returns
Type Description
Int32
| Improve this Doc View Source

IntSlider(Rect, String, Int32, Int32, Int32)

Declaration
public static int IntSlider(Rect position, string label, int value, int leftValue, int rightValue)
Parameters
Type Name Description
Rect position
String label
Int32 value
Int32 leftValue
Int32 rightValue
Returns
Type Description
Int32
| Improve this Doc View Source

IntSlider(Rect, SerializedProperty, Int32, Int32)

Declaration
public static void IntSlider(Rect position, SerializedProperty property, int leftValue, int rightValue)
Parameters
Type Name Description
Rect position
SerializedProperty property
Int32 leftValue
Int32 rightValue
| Improve this Doc View Source

IntSlider(Rect, SerializedProperty, Int32, Int32, String)

Declaration
public static void IntSlider(Rect position, SerializedProperty property, int leftValue, int rightValue, string label)
Parameters
Type Name Description
Rect position
SerializedProperty property
Int32 leftValue
Int32 rightValue
String label
| Improve this Doc View Source

IntSlider(Rect, SerializedProperty, Int32, Int32, GUIContent)

Declaration
public static void IntSlider(Rect position, SerializedProperty property, int leftValue, int rightValue, GUIContent label)
Parameters
Type Name Description
Rect position
SerializedProperty property
Int32 leftValue
Int32 rightValue
GUIContent label
| Improve this Doc View Source

IntSlider(Rect, GUIContent, Int32, Int32, Int32)

Declaration
public static int IntSlider(Rect position, GUIContent label, int value, int leftValue, int rightValue)
Parameters
Type Name Description
Rect position
GUIContent label
Int32 value
Int32 leftValue
Int32 rightValue
Returns
Type Description
Int32
| Improve this Doc View Source

LabelField(Rect, String)

Declaration
[ExcludeFromDocs]
public static void LabelField(Rect position, string label)
Parameters
Type Name Description
Rect position
String label
| Improve this Doc View Source

LabelField(Rect, String, String)

Declaration
[ExcludeFromDocs]
public static void LabelField(Rect position, string label, string label2)
Parameters
Type Name Description
Rect position
String label
String label2
| Improve this Doc View Source

LabelField(Rect, String, String, GUIStyle)

Declaration
public static void LabelField(Rect position, string label, string label2, [DefaultValue("EditorStyles.label")] GUIStyle style)
Parameters
Type Name Description
Rect position
String label
String label2
GUIStyle style
| Improve this Doc View Source

LabelField(Rect, String, GUIStyle)

Declaration
public static void LabelField(Rect position, string label, [DefaultValue("EditorStyles.label")] GUIStyle style)
Parameters
Type Name Description
Rect position
String label
GUIStyle style
| Improve this Doc View Source

LabelField(Rect, GUIContent)

Declaration
[ExcludeFromDocs]
public static void LabelField(Rect position, GUIContent label)
Parameters
Type Name Description
Rect position
GUIContent label
| Improve this Doc View Source

LabelField(Rect, GUIContent, GUIContent)

Declaration
[ExcludeFromDocs]
public static void LabelField(Rect position, GUIContent label, GUIContent label2)
Parameters
Type Name Description
Rect position
GUIContent label
GUIContent label2
| Improve this Doc View Source

LabelField(Rect, GUIContent, GUIContent, GUIStyle)

Declaration
public static void LabelField(Rect position, GUIContent label, GUIContent label2, [DefaultValue("EditorStyles.label")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
GUIContent label2
GUIStyle style
| Improve this Doc View Source

LabelField(Rect, GUIContent, GUIStyle)

Declaration
public static void LabelField(Rect position, GUIContent label, [DefaultValue("EditorStyles.label")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
GUIStyle style
| Improve this Doc View Source

LayerField(Rect, Int32)

Declaration
[ExcludeFromDocs]
public static int LayerField(Rect position, int layer)
Parameters
Type Name Description
Rect position
Int32 layer
Returns
Type Description
Int32
| Improve this Doc View Source

LayerField(Rect, Int32, GUIStyle)

Declaration
public static int LayerField(Rect position, int layer, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
Int32 layer
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

LayerField(Rect, String, Int32)

Declaration
[ExcludeFromDocs]
public static int LayerField(Rect position, string label, int layer)
Parameters
Type Name Description
Rect position
String label
Int32 layer
Returns
Type Description
Int32
| Improve this Doc View Source

LayerField(Rect, String, Int32, GUIStyle)

Declaration
public static int LayerField(Rect position, string label, int layer, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
String label
Int32 layer
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

LayerField(Rect, GUIContent, Int32)

Declaration
[ExcludeFromDocs]
public static int LayerField(Rect position, GUIContent label, int layer)
Parameters
Type Name Description
Rect position
GUIContent label
Int32 layer
Returns
Type Description
Int32
| Improve this Doc View Source

LayerField(Rect, GUIContent, Int32, GUIStyle)

Declaration
public static int LayerField(Rect position, GUIContent label, int layer, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
Int32 layer
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

LongField(Rect, Int64)

Declaration
[ExcludeFromDocs]
public static long LongField(Rect position, long value)
Parameters
Type Name Description
Rect position
Int64 value
Returns
Type Description
Int64
| Improve this Doc View Source

LongField(Rect, Int64, GUIStyle)

Declaration
public static long LongField(Rect position, long value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
Int64 value
GUIStyle style
Returns
Type Description
Int64
| Improve this Doc View Source

LongField(Rect, String, Int64)

Declaration
[ExcludeFromDocs]
public static long LongField(Rect position, string label, long value)
Parameters
Type Name Description
Rect position
String label
Int64 value
Returns
Type Description
Int64
| Improve this Doc View Source

LongField(Rect, String, Int64, GUIStyle)

Declaration
public static long LongField(Rect position, string label, long value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
String label
Int64 value
GUIStyle style
Returns
Type Description
Int64
| Improve this Doc View Source

LongField(Rect, GUIContent, Int64)

Declaration
[ExcludeFromDocs]
public static long LongField(Rect position, GUIContent label, long value)
Parameters
Type Name Description
Rect position
GUIContent label
Int64 value
Returns
Type Description
Int64
| Improve this Doc View Source

LongField(Rect, GUIContent, Int64, GUIStyle)

Declaration
public static long LongField(Rect position, GUIContent label, long value, [DefaultValue("EditorStyles.numberField")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
Int64 value
GUIStyle style
Returns
Type Description
Int64
| Improve this Doc View Source

MaskField(Rect, Int32, String[])

Declaration
[ExcludeFromDocs]
public static int MaskField(Rect position, int mask, string[] displayedOptions)
Parameters
Type Name Description
Rect position
Int32 mask
String[] displayedOptions
Returns
Type Description
Int32
| Improve this Doc View Source

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

Declaration
public static int MaskField(Rect position, int mask, string[] displayedOptions, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
Int32 mask
String[] displayedOptions
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

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

Declaration
[ExcludeFromDocs]
public static int MaskField(Rect position, string label, int mask, string[] displayedOptions)
Parameters
Type Name Description
Rect position
String label
Int32 mask
String[] displayedOptions
Returns
Type Description
Int32
| Improve this Doc View Source

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

Declaration
public static int MaskField(Rect position, string label, int mask, string[] displayedOptions, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
String label
Int32 mask
String[] displayedOptions
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

MaskField(Rect, GUIContent, Int32, String[])

Declaration
[ExcludeFromDocs]
public static int MaskField(Rect position, GUIContent label, int mask, string[] displayedOptions)
Parameters
Type Name Description
Rect position
GUIContent label
Int32 mask
String[] displayedOptions
Returns
Type Description
Int32
| Improve this Doc View Source

MaskField(Rect, GUIContent, Int32, String[], GUIStyle)

Declaration
public static int MaskField(Rect position, GUIContent label, int mask, string[] displayedOptions, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
Int32 mask
String[] displayedOptions
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

MinMaxSlider(GUIContent, Rect, ref Single, ref Single, Single, Single)

Declaration
[Obsolete("Switch the order of the first two parameters.")]
public static void MinMaxSlider(GUIContent label, Rect position, ref float minValue, ref float maxValue, float minLimit, float maxLimit)
Parameters
Type Name Description
GUIContent label
Rect position
Single minValue
Single maxValue
Single minLimit
Single maxLimit
| Improve this Doc View Source

MinMaxSlider(Rect, ref Single, ref Single, Single, Single)

Declaration
public static void MinMaxSlider(Rect position, ref float minValue, ref float maxValue, float minLimit, float maxLimit)
Parameters
Type Name Description
Rect position
Single minValue
Single maxValue
Single minLimit
Single maxLimit
| Improve this Doc View Source

MinMaxSlider(Rect, String, ref Single, ref Single, Single, Single)

Declaration
public static void MinMaxSlider(Rect position, string label, ref float minValue, ref float maxValue, float minLimit, float maxLimit)
Parameters
Type Name Description
Rect position
String label
Single minValue
Single maxValue
Single minLimit
Single maxLimit
| Improve this Doc View Source

MinMaxSlider(Rect, GUIContent, ref Single, ref Single, Single, Single)

Declaration
public static void MinMaxSlider(Rect position, GUIContent label, ref float minValue, ref float maxValue, float minLimit, float maxLimit)
Parameters
Type Name Description
Rect position
GUIContent label
Single minValue
Single maxValue
Single minLimit
Single maxLimit
| Improve this Doc View Source

MultiFloatField(Rect, GUIContent, GUIContent[], Single[])

Declaration
public static void MultiFloatField(Rect position, GUIContent label, GUIContent[] subLabels, float[] values)
Parameters
Type Name Description
Rect position
GUIContent label
GUIContent[] subLabels
Single[] values
| Improve this Doc View Source

MultiFloatField(Rect, GUIContent[], Single[])

Declaration
public static void MultiFloatField(Rect position, GUIContent[] subLabels, float[] values)
Parameters
Type Name Description
Rect position
GUIContent[] subLabels
Single[] values
| Improve this Doc View Source

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

Declaration
public static void MultiIntField(Rect position, GUIContent[] subLabels, int[] values)
Parameters
Type Name Description
Rect position
GUIContent[] subLabels
Int32[] values
| Improve this Doc View Source

MultiPropertyField(Rect, GUIContent[], SerializedProperty)

Declaration
public static void MultiPropertyField(Rect position, GUIContent[] subLabels, SerializedProperty valuesIterator)
Parameters
Type Name Description
Rect position
GUIContent[] subLabels
SerializedProperty valuesIterator
| Improve this Doc View Source

MultiPropertyField(Rect, GUIContent[], SerializedProperty, GUIContent)

Declaration
public static void MultiPropertyField(Rect position, GUIContent[] subLabels, SerializedProperty valuesIterator, GUIContent label)
Parameters
Type Name Description
Rect position
GUIContent[] subLabels
SerializedProperty valuesIterator
GUIContent label
| Improve this Doc View Source

ObjectField(Rect, String, Object, Type)

Declaration
[Obsolete("Check the docs for the usage of the new parameter 'allowSceneObjects'.")]
public static Object ObjectField(Rect position, string label, Object obj, Type objType)
Parameters
Type Name Description
Rect position
String label
Object obj
Type objType
Returns
Type Description
Object
| Improve this Doc View Source

ObjectField(Rect, String, Object, Type, Boolean)

Declaration
public static Object ObjectField(Rect position, string label, Object obj, Type objType, bool allowSceneObjects)
Parameters
Type Name Description
Rect position
String label
Object obj
Type objType
Boolean allowSceneObjects
Returns
Type Description
Object
| Improve this Doc View Source

ObjectField(Rect, SerializedProperty)

Declaration
public static void ObjectField(Rect position, SerializedProperty property)
Parameters
Type Name Description
Rect position
SerializedProperty property
| Improve this Doc View Source

ObjectField(Rect, SerializedProperty, Type)

Declaration
public static void ObjectField(Rect position, SerializedProperty property, Type objType)
Parameters
Type Name Description
Rect position
SerializedProperty property
Type objType
| Improve this Doc View Source

ObjectField(Rect, SerializedProperty, Type, GUIContent)

Declaration
public static void ObjectField(Rect position, SerializedProperty property, Type objType, GUIContent label)
Parameters
Type Name Description
Rect position
SerializedProperty property
Type objType
GUIContent label
| Improve this Doc View Source

ObjectField(Rect, SerializedProperty, GUIContent)

Declaration
public static void ObjectField(Rect position, SerializedProperty property, GUIContent label)
Parameters
Type Name Description
Rect position
SerializedProperty property
GUIContent label
| Improve this Doc View Source

ObjectField(Rect, GUIContent, Object, Type)

Declaration
[Obsolete("Check the docs for the usage of the new parameter 'allowSceneObjects'.")]
public static Object ObjectField(Rect position, GUIContent label, Object obj, Type objType)
Parameters
Type Name Description
Rect position
GUIContent label
Object obj
Type objType
Returns
Type Description
Object
| Improve this Doc View Source

ObjectField(Rect, GUIContent, Object, Type, Boolean)

Declaration
public static Object ObjectField(Rect position, GUIContent label, Object obj, Type objType, bool allowSceneObjects)
Parameters
Type Name Description
Rect position
GUIContent label
Object obj
Type objType
Boolean allowSceneObjects
Returns
Type Description
Object
| Improve this Doc View Source

ObjectField(Rect, Object, Type)

Declaration
[Obsolete("Check the docs for the usage of the new parameter 'allowSceneObjects'.")]
public static Object ObjectField(Rect position, Object obj, Type objType)
Parameters
Type Name Description
Rect position
Object obj
Type objType
Returns
Type Description
Object
| Improve this Doc View Source

ObjectField(Rect, Object, Type, Boolean)

Declaration
public static Object ObjectField(Rect position, Object obj, Type objType, bool allowSceneObjects)
Parameters
Type Name Description
Rect position
Object obj
Type objType
Boolean allowSceneObjects
Returns
Type Description
Object
| Improve this Doc View Source

PasswordField(Rect, String)

Declaration
[ExcludeFromDocs]
public static string PasswordField(Rect position, string password)
Parameters
Type Name Description
Rect position
String password
Returns
Type Description
String
| Improve this Doc View Source

PasswordField(Rect, String, String)

Declaration
[ExcludeFromDocs]
public static string PasswordField(Rect position, string label, string password)
Parameters
Type Name Description
Rect position
String label
String password
Returns
Type Description
String
| Improve this Doc View Source

PasswordField(Rect, String, String, GUIStyle)

Declaration
public static string PasswordField(Rect position, string label, string password, [DefaultValue("EditorStyles.textField")] GUIStyle style)
Parameters
Type Name Description
Rect position
String label
String password
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

PasswordField(Rect, String, GUIStyle)

Declaration
public static string PasswordField(Rect position, string password, [DefaultValue("EditorStyles.textField")] GUIStyle style)
Parameters
Type Name Description
Rect position
String password
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

PasswordField(Rect, GUIContent, String)

Declaration
[ExcludeFromDocs]
public static string PasswordField(Rect position, GUIContent label, string password)
Parameters
Type Name Description
Rect position
GUIContent label
String password
Returns
Type Description
String
| Improve this Doc View Source

PasswordField(Rect, GUIContent, String, GUIStyle)

Declaration
public static string PasswordField(Rect position, GUIContent label, string password, [DefaultValue("EditorStyles.textField")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
String password
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

Popup(Rect, Int32, String[])

Declaration
[ExcludeFromDocs]
public static int Popup(Rect position, int selectedIndex, string[] displayedOptions)
Parameters
Type Name Description
Rect position
Int32 selectedIndex
String[] displayedOptions
Returns
Type Description
Int32
| Improve this Doc View Source

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

Declaration
public static int Popup(Rect position, int selectedIndex, string[] displayedOptions, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
Int32 selectedIndex
String[] displayedOptions
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

Popup(Rect, Int32, GUIContent[])

Declaration
[ExcludeFromDocs]
public static int Popup(Rect position, int selectedIndex, GUIContent[] displayedOptions)
Parameters
Type Name Description
Rect position
Int32 selectedIndex
GUIContent[] displayedOptions
Returns
Type Description
Int32
| Improve this Doc View Source

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

Declaration
public static int Popup(Rect position, int selectedIndex, GUIContent[] displayedOptions, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
Int32 selectedIndex
GUIContent[] displayedOptions
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

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

Declaration
[ExcludeFromDocs]
public static int Popup(Rect position, string label, int selectedIndex, string[] displayedOptions)
Parameters
Type Name Description
Rect position
String label
Int32 selectedIndex
String[] displayedOptions
Returns
Type Description
Int32
| Improve this Doc View Source

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

Declaration
public static int Popup(Rect position, string label, int selectedIndex, string[] displayedOptions, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
String label
Int32 selectedIndex
String[] displayedOptions
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

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

Declaration
[ExcludeFromDocs]
public static int Popup(Rect position, GUIContent label, int selectedIndex, GUIContent[] displayedOptions)
Parameters
Type Name Description
Rect position
GUIContent label
Int32 selectedIndex
GUIContent[] displayedOptions
Returns
Type Description
Int32
| Improve this Doc View Source

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

Declaration
public static int Popup(Rect position, GUIContent label, int selectedIndex, GUIContent[] displayedOptions, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
Int32 selectedIndex
GUIContent[] displayedOptions
GUIStyle style
Returns
Type Description
Int32
| Improve this Doc View Source

PrefixLabel(Rect, Int32, GUIContent)

Declaration
public static Rect PrefixLabel(Rect totalPosition, int id, GUIContent label)
Parameters
Type Name Description
Rect totalPosition
Int32 id
GUIContent label
Returns
Type Description
Rect
| Improve this Doc View Source

PrefixLabel(Rect, Int32, GUIContent, GUIStyle)

Declaration
public static Rect PrefixLabel(Rect totalPosition, int id, GUIContent label, GUIStyle style)
Parameters
Type Name Description
Rect totalPosition
Int32 id
GUIContent label
GUIStyle style
Returns
Type Description
Rect
| Improve this Doc View Source

PrefixLabel(Rect, GUIContent)

Declaration
public static Rect PrefixLabel(Rect totalPosition, GUIContent label)
Parameters
Type Name Description
Rect totalPosition
GUIContent label
Returns
Type Description
Rect
| Improve this Doc View Source

PrefixLabel(Rect, GUIContent, GUIStyle)

Declaration
public static Rect PrefixLabel(Rect totalPosition, GUIContent label, GUIStyle style)
Parameters
Type Name Description
Rect totalPosition
GUIContent label
GUIStyle style
Returns
Type Description
Rect
| Improve this Doc View Source

ProgressBar(Rect, Single, String)

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

PropertyField(Rect, SerializedProperty)

Declaration
[ExcludeFromDocs]
public static bool PropertyField(Rect position, SerializedProperty property)
Parameters
Type Name Description
Rect position
SerializedProperty property
Returns
Type Description
Boolean
| Improve this Doc View Source

PropertyField(Rect, SerializedProperty, Boolean)

Declaration
public static bool PropertyField(Rect position, SerializedProperty property, [DefaultValue("false")] bool includeChildren)
Parameters
Type Name Description
Rect position
SerializedProperty property
Boolean includeChildren
Returns
Type Description
Boolean
| Improve this Doc View Source

PropertyField(Rect, SerializedProperty, GUIContent)

Declaration
[ExcludeFromDocs]
public static bool PropertyField(Rect position, SerializedProperty property, GUIContent label)
Parameters
Type Name Description
Rect position
SerializedProperty property
GUIContent label
Returns
Type Description
Boolean
| Improve this Doc View Source

PropertyField(Rect, SerializedProperty, GUIContent, Boolean)

Declaration
public static bool PropertyField(Rect position, SerializedProperty property, GUIContent label, [DefaultValue("false")] bool includeChildren)
Parameters
Type Name Description
Rect position
SerializedProperty property
GUIContent label
Boolean includeChildren
Returns
Type Description
Boolean
| Improve this Doc View Source

RectField(Rect, String, Rect)

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

RectField(Rect, GUIContent, Rect)

Declaration
public static Rect RectField(Rect position, GUIContent label, Rect value)
Parameters
Type Name Description
Rect position
GUIContent label
Rect value
Returns
Type Description
Rect
| Improve this Doc View Source

RectField(Rect, Rect)

Declaration
public static Rect RectField(Rect position, Rect value)
Parameters
Type Name Description
Rect position
Rect value
Returns
Type Description
Rect
| Improve this Doc View Source

RectIntField(Rect, String, RectInt)

Declaration
public static RectInt RectIntField(Rect position, string label, RectInt value)
Parameters
Type Name Description
Rect position
String label
RectInt value
Returns
Type Description
RectInt
| Improve this Doc View Source

RectIntField(Rect, GUIContent, RectInt)

Declaration
public static RectInt RectIntField(Rect position, GUIContent label, RectInt value)
Parameters
Type Name Description
Rect position
GUIContent label
RectInt value
Returns
Type Description
RectInt
| Improve this Doc View Source

RectIntField(Rect, RectInt)

Declaration
public static RectInt RectIntField(Rect position, RectInt value)
Parameters
Type Name Description
Rect position
RectInt value
Returns
Type Description
RectInt
| Improve this Doc View Source

SelectableLabel(Rect, String)

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

SelectableLabel(Rect, String, GUIStyle)

Declaration
public static void SelectableLabel(Rect position, string text, [DefaultValue("EditorStyles.label")] GUIStyle style)
Parameters
Type Name Description
Rect position
String text
GUIStyle style
| Improve this Doc View Source

Slider(Rect, Single, Single, Single)

Declaration
public static float Slider(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

Slider(Rect, String, Single, Single, Single)

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

Slider(Rect, SerializedProperty, Single, Single)

Declaration
public static void Slider(Rect position, SerializedProperty property, float leftValue, float rightValue)
Parameters
Type Name Description
Rect position
SerializedProperty property
Single leftValue
Single rightValue
| Improve this Doc View Source

Slider(Rect, SerializedProperty, Single, Single, String)

Declaration
public static void Slider(Rect position, SerializedProperty property, float leftValue, float rightValue, string label)
Parameters
Type Name Description
Rect position
SerializedProperty property
Single leftValue
Single rightValue
String label
| Improve this Doc View Source

Slider(Rect, SerializedProperty, Single, Single, GUIContent)

Declaration
public static void Slider(Rect position, SerializedProperty property, float leftValue, float rightValue, GUIContent label)
Parameters
Type Name Description
Rect position
SerializedProperty property
Single leftValue
Single rightValue
GUIContent label
| Improve this Doc View Source

Slider(Rect, GUIContent, Single, Single, Single)

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

TagField(Rect, String)

Declaration
[ExcludeFromDocs]
public static string TagField(Rect position, string tag)
Parameters
Type Name Description
Rect position
String tag
Returns
Type Description
String
| Improve this Doc View Source

TagField(Rect, String, String)

Declaration
[ExcludeFromDocs]
public static string TagField(Rect position, string label, string tag)
Parameters
Type Name Description
Rect position
String label
String tag
Returns
Type Description
String
| Improve this Doc View Source

TagField(Rect, String, String, GUIStyle)

Declaration
public static string TagField(Rect position, string label, string tag, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
String label
String tag
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

TagField(Rect, String, GUIStyle)

Declaration
public static string TagField(Rect position, string tag, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
String tag
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

TagField(Rect, GUIContent, String)

Declaration
[ExcludeFromDocs]
public static string TagField(Rect position, GUIContent label, string tag)
Parameters
Type Name Description
Rect position
GUIContent label
String tag
Returns
Type Description
String
| Improve this Doc View Source

TagField(Rect, GUIContent, String, GUIStyle)

Declaration
public static string TagField(Rect position, GUIContent label, string tag, [DefaultValue("EditorStyles.popup")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
String tag
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

TextArea(Rect, String)

Declaration
[ExcludeFromDocs]
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, GUIStyle)

Declaration
public static string TextArea(Rect position, string text, [DefaultValue("EditorStyles.textField")] 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
[ExcludeFromDocs]
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, String)

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

TextField(Rect, String, String, GUIStyle)

Declaration
public static string TextField(Rect position, string label, string text, [DefaultValue("EditorStyles.textField")] GUIStyle style)
Parameters
Type Name Description
Rect position
String label
String text
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

TextField(Rect, String, GUIStyle)

Declaration
public static string TextField(Rect position, string text, [DefaultValue("EditorStyles.textField")] GUIStyle style)
Parameters
Type Name Description
Rect position
String text
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

TextField(Rect, GUIContent, String)

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

TextField(Rect, GUIContent, String, GUIStyle)

Declaration
public static string TextField(Rect position, GUIContent label, string text, [DefaultValue("EditorStyles.textField")] GUIStyle style)
Parameters
Type Name Description
Rect position
GUIContent label
String text
GUIStyle style
Returns
Type Description
String
| Improve this Doc View Source

Toggle(Rect, Boolean)

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

Toggle(Rect, Boolean, GUIStyle)

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

Toggle(Rect, String, Boolean)

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

Toggle(Rect, String, Boolean, GUIStyle)

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

Toggle(Rect, GUIContent, Boolean)

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

Toggle(Rect, GUIContent, Boolean, GUIStyle)

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

ToggleLeft(Rect, String, Boolean)

Declaration
[ExcludeFromDocs]
public static bool ToggleLeft(Rect position, string label, bool value)
Parameters
Type Name Description
Rect position
String label
Boolean value
Returns
Type Description
Boolean
| Improve this Doc View Source

ToggleLeft(Rect, String, Boolean, GUIStyle)

Declaration
public static bool ToggleLeft(Rect position, string label, bool value, [DefaultValue("EditorStyles.label")] GUIStyle labelStyle)
Parameters
Type Name Description
Rect position
String label
Boolean value
GUIStyle labelStyle
Returns
Type Description
Boolean
| Improve this Doc View Source

ToggleLeft(Rect, GUIContent, Boolean)

Declaration
[ExcludeFromDocs]
public static bool ToggleLeft(Rect position, GUIContent label, bool value)
Parameters
Type Name Description
Rect position
GUIContent label
Boolean value
Returns
Type Description
Boolean
| Improve this Doc View Source

ToggleLeft(Rect, GUIContent, Boolean, GUIStyle)

Declaration
public static bool ToggleLeft(Rect position, GUIContent label, bool value, [DefaultValue("EditorStyles.label")] GUIStyle labelStyle)
Parameters
Type Name Description
Rect position
GUIContent label
Boolean value
GUIStyle labelStyle
Returns
Type Description
Boolean
| Improve this Doc View Source

Vector2Field(Rect, String, Vector2)

Declaration
public static Vector2 Vector2Field(Rect position, string label, Vector2 value)
Parameters
Type Name Description
Rect position
String label
Vector2 value
Returns
Type Description
Vector2
| Improve this Doc View Source

Vector2Field(Rect, GUIContent, Vector2)

Declaration
public static Vector2 Vector2Field(Rect position, GUIContent label, Vector2 value)
Parameters
Type Name Description
Rect position
GUIContent label
Vector2 value
Returns
Type Description
Vector2
| Improve this Doc View Source

Vector2IntField(Rect, String, Vector2Int)

Declaration
public static Vector2Int Vector2IntField(Rect position, string label, Vector2Int value)
Parameters
Type Name Description
Rect position
String label
Vector2Int value
Returns
Type Description
Vector2Int
| Improve this Doc View Source

Vector2IntField(Rect, GUIContent, Vector2Int)

Declaration
public static Vector2Int Vector2IntField(Rect position, GUIContent label, Vector2Int value)
Parameters
Type Name Description
Rect position
GUIContent label
Vector2Int value
Returns
Type Description
Vector2Int
| Improve this Doc View Source

Vector3Field(Rect, String, Vector3)

Declaration
public static Vector3 Vector3Field(Rect position, string label, Vector3 value)
Parameters
Type Name Description
Rect position
String label
Vector3 value
Returns
Type Description
Vector3
| Improve this Doc View Source

Vector3Field(Rect, GUIContent, Vector3)

Declaration
public static Vector3 Vector3Field(Rect position, GUIContent label, Vector3 value)
Parameters
Type Name Description
Rect position
GUIContent label
Vector3 value
Returns
Type Description
Vector3
| Improve this Doc View Source

Vector3IntField(Rect, String, Vector3Int)

Declaration
public static Vector3Int Vector3IntField(Rect position, string label, Vector3Int value)
Parameters
Type Name Description
Rect position
String label
Vector3Int value
Returns
Type Description
Vector3Int
| Improve this Doc View Source

Vector3IntField(Rect, GUIContent, Vector3Int)

Declaration
public static Vector3Int Vector3IntField(Rect position, GUIContent label, Vector3Int value)
Parameters
Type Name Description
Rect position
GUIContent label
Vector3Int value
Returns
Type Description
Vector3Int
| Improve this Doc View Source

Vector4Field(Rect, String, Vector4)

Declaration
public static Vector4 Vector4Field(Rect position, string label, Vector4 value)
Parameters
Type Name Description
Rect position
String label
Vector4 value
Returns
Type Description
Vector4
| Improve this Doc View Source

Vector4Field(Rect, GUIContent, Vector4)

Declaration
public static Vector4 Vector4Field(Rect position, GUIContent label, Vector4 value)
Parameters
Type Name Description
Rect position
GUIContent label
Vector4 value
Returns
Type Description
Vector4

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