Version 3.3.1.2

SirenixEditorFields class

Namespace: Sirenix.Utilities.Editor
Assembly: Sirenix.Utilities.Editor
public static class SirenixEditorFields
Field drawing functions for various types.
Inheritance
  • System.Object
  • SirenixEditorFields

Fields

SingleLetterStructLabelWidth
The width of the X, Y and Z labels in structs.
public static readonly int SingleLetterStructLabelWidth
UnitFieldFormatStringDecimal
public static string UnitFieldFormatStringDecimal
UnitFieldFormatStringDouble
public static string UnitFieldFormatStringDouble
UnitFieldFormatStringFloat
public static string UnitFieldFormatStringFloat
UnitFieldFormatStringInteger
public static string UnitFieldFormatStringInteger

Properties

ResponsiveVectorComponentFields
When true the component labels, for vector fields, will be hidden when the field is too narrow.
public static bool ResponsiveVectorComponentFields { get; set; }

Methods

AngleAxisField(String, Quaternion, GUILayoutOption[])
Draws an angle axis field for a quaternion.
public static Quaternion AngleAxisField(string label, Quaternion value, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

UnityEngine.Quaternion value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Quaternion

Value assigned to the field.

AngleAxisField(GUIContent, Quaternion, GUILayoutOption[])
Draws an angle axis field for a quaternion.
public static Quaternion AngleAxisField(GUIContent label, Quaternion value, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

UnityEngine.Quaternion value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Quaternion

Value assigned to the field.

AngleAxisField(Quaternion, GUILayoutOption[])
Draws an angle axis field for a quaternion.
public static Quaternion AngleAxisField(Quaternion value, params GUILayoutOption[] options)
Parameters
UnityEngine.Quaternion value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Quaternion

Value assigned to the field.

AngleAxisField(Rect, String, Quaternion)
Draws an angle axis field for a quaternion.
public static Quaternion AngleAxisField(Rect rect, string label, Quaternion value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

Label of field. Set to null for no label.

UnityEngine.Quaternion value

Current value.

Returns
UnityEngine.Quaternion

Value assigned to the field.

AngleAxisField(Rect, GUIContent, Quaternion)
Draws an angle axis field for a quaternion.
public static Quaternion AngleAxisField(Rect rect, GUIContent label, Quaternion value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

UnityEngine.Quaternion value

Current value.

Returns
UnityEngine.Quaternion

Value assigned to the field.

AngleAxisField(Rect, Quaternion)
Draws an angle axis field for a quaternion.
public static Quaternion AngleAxisField(Rect rect, Quaternion value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.Quaternion value

Current value.

Returns
UnityEngine.Quaternion

Value assigned to the field.

ColorField(String, Color, GUILayoutOption[])
Draws a Color field.
public static Color ColorField(string label, Color value, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

UnityEngine.Color value

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Color

Value assigned to the field.

ColorField(Color, GUILayoutOption[])
Draws a Color field.
public static Color ColorField(Color value, params GUILayoutOption[] options)
Parameters
UnityEngine.Color value

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Color

Value assigned to the field.

ColorField(GUIContent, Color, GUILayoutOption[])
Draws a Color field.
public static Color ColorField(GUIContent label, Color value, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

UnityEngine.Color value

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Color

Value assigned to the field.

ColorField(Rect, String, Color)
Draws a Color field.
public static Color ColorField(Rect rect, string label, Color value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

Label of field. Set to null for no label.

UnityEngine.Color value

Returns
UnityEngine.Color

Value assigned to the field.

ColorField(Rect, Color)
Draws a Color field.
public static Color ColorField(Rect rect, Color value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.Color value

Returns
UnityEngine.Color

Value assigned to the field.

ColorField(Rect, GUIContent, Color)
Draws a Color field.
public static Color ColorField(Rect rect, GUIContent label, Color value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

UnityEngine.Color value

Returns
UnityEngine.Color

Value assigned to the field.

DecimalField(Decimal, GUILayoutOption[])
Draws a decimal field.
public static decimal DecimalField(decimal value, params GUILayoutOption[] options)
Parameters
System.Decimal value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Decimal

Value assigned to the field.

DecimalField(String, Decimal, GUILayoutOption[])
Draws a decimal field.
public static decimal DecimalField(string label, decimal value, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

System.Decimal value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Decimal

Value assigned to the field.

DecimalField(GUIContent, Decimal, GUILayoutOption[])
Draws a decimal field.
public static decimal DecimalField(GUIContent label, decimal value, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Decimal value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Decimal

Value assigned to the field.

DecimalField(GUIContent, Decimal, GUIStyle, GUILayoutOption[])
Draws a decimal field.
public static decimal DecimalField(GUIContent label, decimal value, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Decimal value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Decimal

Value assigned to the field.

DecimalField(Rect, Decimal)
Draws a decimal field.
public static decimal DecimalField(Rect rect, decimal value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Decimal value

Current value.

Returns
System.Decimal

Value assigned to the field.

DecimalField(Rect, String, Decimal)
Draws a decimal field.
public static decimal DecimalField(Rect rect, string label, decimal value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

Label of field. Set to null for no label.

System.Decimal value

Current value.

Returns
System.Decimal

Value assigned to the field.

DecimalField(Rect, GUIContent, Decimal)
Draws a decimal field.
public static decimal DecimalField(Rect rect, GUIContent label, decimal value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Decimal value

Current value.

Returns
System.Decimal

Value assigned to the field.

DecimalField(Rect, GUIContent, Decimal, GUIStyle)
Draws a decimal field.
public static decimal DecimalField(Rect rect, GUIContent label, decimal value, GUIStyle style)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Decimal value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

Returns
System.Decimal

Value assigned to the field.

DecimalUnitField(Decimal, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a decimal field that supports unit conversions.
public static decimal DecimalUnitField(decimal value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
System.Decimal value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Decimal

Value assigned to the field.

DecimalUnitField(String, Decimal, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a decimal field that supports unit conversions.
public static decimal DecimalUnitField(string label, decimal value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
System.String label

System.Decimal value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Decimal

Value assigned to the field.

DecimalUnitField(GUIContent, Decimal, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a decimal field that supports unit conversions.
public static decimal DecimalUnitField(GUIContent label, decimal value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Decimal value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Decimal

Value assigned to the field.

DecimalUnitField(GUIContent, Decimal, UnitInfo, UnitInfo, GUIStyle, GUILayoutOption[])
Draws a decimal field that supports unit conversions.
public static decimal DecimalUnitField(GUIContent label, decimal value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Decimal value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUIStyle style

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Decimal

Value assigned to the field.

DecimalUnitField(Rect, Decimal, UnitInfo, UnitInfo)
Draws a decimal field that supports unit conversions.
public static decimal DecimalUnitField(Rect rect, decimal value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
UnityEngine.Rect rect

System.Decimal value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

Returns
System.Decimal

Value assigned to the field.

DecimalUnitField(Rect, String, Decimal, UnitInfo, UnitInfo)
Draws a decimal field that supports unit conversions.
public static decimal DecimalUnitField(Rect rect, string label, decimal value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
UnityEngine.Rect rect

System.String label

System.Decimal value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

Returns
System.Decimal

Value assigned to the field.

DecimalUnitField(Rect, GUIContent, Decimal, UnitInfo, UnitInfo)
Draws a decimal field that supports unit conversions.
public static decimal DecimalUnitField(Rect rect, GUIContent label, decimal value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Decimal value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

Returns
System.Decimal

Value assigned to the field.

DecimalUnitField(Rect, GUIContent, Decimal, UnitInfo, UnitInfo, GUIStyle)
Draws a decimal field that supports unit conversions.
public static decimal DecimalUnitField(Rect rect, GUIContent label, decimal value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, GUIStyle style)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Decimal value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

Returns
System.Decimal

Value assigned to the field.

DelayedDoubleField(Double, GUILayoutOption[])
Draws a delayed double field.
public static double DelayedDoubleField(double value, params GUILayoutOption[] options)
Parameters
System.Double value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

Value assigned to the field.

DelayedDoubleField(String, Double, GUILayoutOption[])
Draws a delayed double field.
public static double DelayedDoubleField(string label, double value, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

System.Double value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

Value assigned to the field.

DelayedDoubleField(GUIContent, Double, GUILayoutOption[])
Draws a delayed double field.
public static double DelayedDoubleField(GUIContent label, double value, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Double value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

Value assigned to the field.

DelayedDoubleField(GUIContent, Double, GUIStyle, GUILayoutOption[])
Draws a delayed double field.
public static double DelayedDoubleField(GUIContent label, double value, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Double value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

Value assigned to the field.

DelayedDoubleField(Rect, Double)
Draws a delayed double field.
public static double DelayedDoubleField(Rect rect, double value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Double value

Current value.

Returns
System.Double

Value assigned to the field.

DelayedDoubleField(Rect, String, Double)
Draws a delayed double field.
public static double DelayedDoubleField(Rect rect, string label, double value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

Label of field. Set to null for no label.

System.Double value

Current value.

Returns
System.Double

Value assigned to the field.

DelayedDoubleField(Rect, GUIContent, Double)
Draws a delayed double field.
public static double DelayedDoubleField(Rect rect, GUIContent label, double value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Double value

Current value.

Returns
System.Double

Value assigned to the field.

DelayedDoubleField(Rect, GUIContent, Double, GUIStyle)
Draws a delayed double field.
public static double DelayedDoubleField(Rect rect, GUIContent label, double value, GUIStyle style)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Double value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

Returns
System.Double

Value assigned to the field.

DelayedFloatField(Single, GUILayoutOption[])
Draws a delayed float field.
public static float DelayedFloatField(float value, params GUILayoutOption[] options)
Parameters
System.Single value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Single

Value assigned to the field.

DelayedFloatField(String, Single, GUILayoutOption[])
Draws a delayed float field.
public static float DelayedFloatField(string label, float value, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

System.Single value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Single

Value assigned to the field.

DelayedFloatField(GUIContent, Single, GUILayoutOption[])
Draws a delayed float field.
public static float DelayedFloatField(GUIContent label, float value, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Single value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Single

Value assigned to the field.

DelayedFloatField(GUIContent, Single, GUIStyle, GUILayoutOption[])
Draws a delayed float field.
public static float DelayedFloatField(GUIContent label, float value, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Single value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Single

Value assigned to the field.

DelayedFloatField(Rect, Single)
Draws a delayed float field.
public static float DelayedFloatField(Rect rect, float value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Single value

Current value.

Returns
System.Single

Value assigned to the field.

DelayedFloatField(Rect, String, Single)
Draws a delayed float field.
public static float DelayedFloatField(Rect rect, string label, float value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

Label of field. Set to null for no label.

System.Single value

Current value.

Returns
System.Single

Value assigned to the field.

DelayedFloatField(Rect, GUIContent, Single)
Draws a delayed float field.
public static float DelayedFloatField(Rect rect, GUIContent label, float value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Single value

Current value.

Returns
System.Single

Value assigned to the field.

DelayedFloatField(Rect, GUIContent, Single, GUIStyle)
Draws a delayed float field.
public static float DelayedFloatField(Rect rect, GUIContent label, float value, GUIStyle style)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Single value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

Returns
System.Single

Value assigned to the field.

DelayedIntField(Int32, GUILayoutOption[])
Draws a delayed int field.
public static int DelayedIntField(int value, params GUILayoutOption[] options)
Parameters
System.Int32 value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

DelayedIntField(String, Int32, GUILayoutOption[])
Draws a delayed int field.
public static int DelayedIntField(string label, int value, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

System.Int32 value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

DelayedIntField(GUIContent, Int32, GUILayoutOption[])
Draws a delayed int field.
public static int DelayedIntField(GUIContent label, int value, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

DelayedIntField(GUIContent, Int32, GUIStyle, GUILayoutOption[])
Draws a delayed int field.
public static int DelayedIntField(GUIContent label, int value, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

DelayedIntField(Rect, Int32)
Draws a delayed int field.
public static int DelayedIntField(Rect rect, int value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Int32 value

Current value.

Returns
System.Int32

Value assigned to the field.

DelayedIntField(Rect, String, Int32)
Draws a delayed int field.
public static int DelayedIntField(Rect rect, string label, int value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

Label of field. Set to null for no label.

System.Int32 value

Current value.

Returns
System.Int32

Value assigned to the field.

DelayedIntField(Rect, GUIContent, Int32)
Draws a delayed int field.
public static int DelayedIntField(Rect rect, GUIContent label, int value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 value

Current value.

Returns
System.Int32

Value assigned to the field.

DelayedIntField(Rect, GUIContent, Int32, GUIStyle)
Draws a delayed int field.
public static int DelayedIntField(Rect rect, GUIContent label, int value, GUIStyle style)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

Returns
System.Int32

Value assigned to the field.

DelayedLongField(Int64, GUILayoutOption[])
Draws a delayed long field.
public static long DelayedLongField(long value, params GUILayoutOption[] options)
Parameters
System.Int64 value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int64

Value assigned to the field.

DelayedLongField(String, Int64, GUILayoutOption[])
Draws a delayed long field.
public static long DelayedLongField(string label, long value, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

System.Int64 value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int64

Value assigned to the field.

DelayedLongField(GUIContent, Int64, GUILayoutOption[])
Draws a delayed long field.
public static long DelayedLongField(GUIContent label, long value, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int64 value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int64

Value assigned to the field.

DelayedLongField(GUIContent, Int64, GUIStyle, GUILayoutOption[])
Draws a delayed long field.
public static long DelayedLongField(GUIContent label, long value, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int64 value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int64

Value assigned to the field.

DelayedLongField(Rect, Int64)
Draws a delayed long field.
public static long DelayedLongField(Rect rect, long value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Int64 value

Current value.

Returns
System.Int64

Value assigned to the field.

DelayedLongField(Rect, String, Int64)
Draws a delayed long field.
public static long DelayedLongField(Rect rect, string label, long value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

Label of field. Set to null for no label.

System.Int64 value

Current value.

Returns
System.Int64

Value assigned to the field.

DelayedLongField(Rect, GUIContent, Int64)
Draws a delayed long field.
public static long DelayedLongField(Rect rect, GUIContent label, long value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int64 value

Current value.

Returns
System.Int64

Value assigned to the field.

DelayedLongField(Rect, GUIContent, Int64, GUIStyle)
Draws a delayed long field.
public static long DelayedLongField(Rect rect, GUIContent label, long value, GUIStyle style)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int64 value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

Returns
System.Int64

Value assigned to the field.

DelayedTextField(String, String, GUILayoutOption[])
Draws a delayed text field.
public static string DelayedTextField(string label, string value, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

System.String value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.String

Value assigned to the field.

DelayedTextField(String, GUILayoutOption[])
Draws a delayed text field.
public static string DelayedTextField(string value, params GUILayoutOption[] options)
Parameters
System.String value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.String

Value assigned to the field.

DelayedTextField(GUIContent, String, GUILayoutOption[])
Draws a delayed text field.
public static string DelayedTextField(GUIContent label, string value, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.String value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.String

Value assigned to the field.

DelayedTextField(GUIContent, String, GUIStyle, GUILayoutOption[])
Draws a delayed text field.
public static string DelayedTextField(GUIContent label, string value, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.String value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.String

Value assigned to the field.

DelayedTextField(Rect, String)
Draws a delayed text field.
public static string DelayedTextField(Rect rect, string value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String value

Current value.

Returns
System.String

Value assigned to the field.

DelayedTextField(Rect, String, String)
Draws a delayed text field.
public static string DelayedTextField(Rect rect, string label, string value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

Label of field. Set to null for no label.

System.String value

Current value.

Returns
System.String

Value assigned to the field.

DelayedTextField(Rect, GUIContent, String)
Draws a delayed text field.
public static string DelayedTextField(Rect rect, GUIContent label, string value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.String value

Current value.

Returns
System.String

Value assigned to the field.

DelayedTextField(Rect, GUIContent, String, GUIStyle)
Draws a delayed text field.
public static string DelayedTextField(Rect rect, GUIContent label, string value, GUIStyle style)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.String value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

Returns
System.String

Value assigned to the field.

DoubleField(Double, GUILayoutOption[])
Draws a double field.
public static double DoubleField(double value, params GUILayoutOption[] options)
Parameters
System.Double value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

Value assigned to the field.

DoubleField(String, Double, GUILayoutOption[])
Draws a double field.
public static double DoubleField(string label, double value, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

System.Double value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

Value assigned to the field.

DoubleField(GUIContent, Double, GUILayoutOption[])
Draws a double field.
public static double DoubleField(GUIContent label, double value, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Double value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

Value assigned to the field.

DoubleField(GUIContent, Double, GUIStyle, GUILayoutOption[])
Draws a double field.
public static double DoubleField(GUIContent label, double value, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Double value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

Value assigned to the field.

DoubleField(Rect, Double)
Draws a double field.
public static double DoubleField(Rect rect, double value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Double value

Current value.

Returns
System.Double

Value assigned to the field.

DoubleField(Rect, String, Double)
Draws a double field.
public static double DoubleField(Rect rect, string label, double value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

Label of field. Set to null for no label.

System.Double value

Current value.

Returns
System.Double

Value assigned to the field.

DoubleField(Rect, GUIContent, Double)
Draws a double field.
public static double DoubleField(Rect rect, GUIContent label, double value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Double value

Current value.

Returns
System.Double

Value assigned to the field.

DoubleField(Rect, GUIContent, Double, GUIStyle)
Draws a double field.
public static double DoubleField(Rect rect, GUIContent label, double value, GUIStyle style)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Double value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

Returns
System.Double

Value assigned to the field.

DoubleUnitField(Double, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a double field that supports unit conversions.
public static double DoubleUnitField(double value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
System.Double value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

Value assigned to the field.

DoubleUnitField(String, Double, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a double field that supports unit conversions.
public static double DoubleUnitField(string label, double value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
System.String label

System.Double value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

Value assigned to the field.

DoubleUnitField(GUIContent, Double, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a double field that supports unit conversions.
public static double DoubleUnitField(GUIContent label, double value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Double value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

Value assigned to the field.

DoubleUnitField(GUIContent, Double, UnitInfo, UnitInfo, GUIStyle, GUILayoutOption[])
Draws a double field that supports unit conversions.
public static double DoubleUnitField(GUIContent label, double value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Double value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUIStyle style

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

Value assigned to the field.

DoubleUnitField(Rect, Double, UnitInfo, UnitInfo)
Draws a double field that supports unit conversions.
public static double DoubleUnitField(Rect rect, double value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
UnityEngine.Rect rect

System.Double value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

Returns
System.Double

Value assigned to the field.

DoubleUnitField(Rect, String, Double, UnitInfo, UnitInfo)
Draws a double field that supports unit conversions.
public static double DoubleUnitField(Rect rect, string label, double value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
UnityEngine.Rect rect

System.String label

System.Double value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

Returns
System.Double

Value assigned to the field.

DoubleUnitField(Rect, GUIContent, Double, UnitInfo, UnitInfo)
Draws a double field that supports unit conversions.
public static double DoubleUnitField(Rect rect, GUIContent label, double value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Double value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

Returns
System.Double

Value assigned to the field.

DoubleUnitField(Rect, GUIContent, Double, UnitInfo, UnitInfo, GUIStyle)
Draws a double field that supports unit conversions.
public static double DoubleUnitField(Rect rect, GUIContent label, double value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, GUIStyle style)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Double value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

Returns
System.Double

Value assigned to the field.

Dropdown(Int32, String[], GUILayoutOption[])
Draws a dropdown.
public static int Dropdown(int selected, string[] itemNames, params GUILayoutOption[] options)
Parameters
System.Int32 selected

Current value.

System.String[] itemNames

Names of selectable items.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

Dropdown(String, Int32, String[], GUILayoutOption[])
Draws a dropdown.
public static int Dropdown(string label, int selected, string[] itemNames, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

System.Int32 selected

Current value.

System.String[] itemNames

Names of selectable items.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

Dropdown(GUIContent, Int32, String[], GUILayoutOption[])
Draws a dropdown.
public static int Dropdown(GUIContent label, int selected, string[] itemNames, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 selected

Current value.

System.String[] itemNames

Names of selectable items.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

Dropdown(GUIContent, Int32, String[], GUIStyle, GUILayoutOption[])
Draws a dropdown.
public static int Dropdown(GUIContent label, int selected, string[] itemNames, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 selected

Current value.

System.String[] itemNames

Names of selectable items.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

Dropdown(Rect, Int32, String[])
Draws a dropdown.
public static int Dropdown(Rect rect, int selected, string[] itemNames)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Int32 selected

Current value.

System.String[] itemNames

Names of selectable items.

Returns
System.Int32

Value assigned to the field.

Dropdown(Rect, String, Int32, String[])
Draws a dropdown.
public static int Dropdown(Rect rect, string label, int selected, string[] itemNames)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

Label of field. Set to null for no label.

System.Int32 selected

Current value.

System.String[] itemNames

Names of selectable items.

Returns
System.Int32

Value assigned to the field.

Dropdown(Rect, GUIContent, Int32, String[])
Draws a dropdown.
public static int Dropdown(Rect rect, GUIContent label, int selected, string[] itemNames)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 selected

Current value.

System.String[] itemNames

Names of selectable items.

Returns
System.Int32

Value assigned to the field.

Dropdown(Rect, GUIContent, Int32, String[], GUIStyle)
Draws a dropdown.
public static int Dropdown(Rect rect, GUIContent label, int selected, string[] itemNames, GUIStyle style)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 selected

Current value.

System.String[] itemNames

Names of selectable items.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

Returns
System.Int32

Value assigned to the field.

Dropdown<T>(T, T[], String[], GUILayoutOption[])
Draws a generic dropdown.
public static T Dropdown<T>(T selected, T[] items, string[] itemNames, params GUILayoutOption[] options)
Parameters
T selected

Current value.

T[] items

System.String[] itemNames

Names of selectable items. If null ToString() will be used instead.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
T

Value assigned to the field.

Type Parameters
T

Dropdown<T>(IList<Int32>, IList<T>, Boolean, GUILayoutOption[])
Draws a dropdown.
public static bool Dropdown<T>(IList<int> selected, IList<T> items, bool multiSelection, params GUILayoutOption[] options)
Parameters
System.Collections.Generic.IList<System.Int32> selected

Current selection.

System.Collections.Generic.IList<T> items

Avaible items in the dropdown.

System.Boolean multiSelection

If true then the user can select multiple items. Otherwise the user can only select one item.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Boolean

true when the user has changed the selection. Otherwise false.

Type Parameters
T

Dropdown<T>(String, T, T[], String[], GUILayoutOption[])
Draws a generic dropdown.
public static T Dropdown<T>(string label, T selected, T[] items, string[] itemNames, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

T selected

Current value.

T[] items

System.String[] itemNames

Names of selectable items. If null ToString() will be used instead.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
T

Value assigned to the field.

Type Parameters
T

Dropdown<T>(String, IList<Int32>, IList<T>, Boolean, GUILayoutOption[])
Draws a dropdown.
public static bool Dropdown<T>(string label, IList<int> selected, IList<T> items, bool multiSelection, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

System.Collections.Generic.IList<System.Int32> selected

Current selection.

System.Collections.Generic.IList<T> items

Avaible items in the dropdown.

System.Boolean multiSelection

If true then the user can select multiple items. Otherwise the user can only select one item.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Boolean

true when the user has changed the selection. Otherwise false.

Type Parameters
T

Dropdown<T>(GUIContent, T, T[], String[], GUILayoutOption[])
Draws a generic dropdown.
public static T Dropdown<T>(GUIContent label, T selected, T[] items, string[] itemNames, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

T selected

Current value.

T[] items

System.String[] itemNames

Names of selectable items. If null ToString() will be used instead.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
T

Value assigned to the field.

Type Parameters
T

Dropdown<T>(GUIContent, T, T[], String[], GUIStyle, GUILayoutOption[])
Draws a generic dropdown.
public static T Dropdown<T>(GUIContent label, T selected, T[] items, string[] itemNames, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

T selected

Current value.

T[] items

System.String[] itemNames

Names of selectable items. If null ToString() will be used instead.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
T

Value assigned to the field.

Type Parameters
T

Dropdown<T>(GUIContent, T, IList<T>)
Draws a generic dropdown.
public static T Dropdown<T>(GUIContent label, T selected, IList<T> items)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

T selected

Current value.

System.Collections.Generic.IList<T> items

Selectable items.

Returns
T

Value assigned to the field.

Type Parameters
T

Dropdown<T>(GUIContent, IList<Int32>, IList<T>, Boolean, GUILayoutOption[])
Draws a dropdown.
public static bool Dropdown<T>(GUIContent label, IList<int> selected, IList<T> items, bool multiSelection, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Collections.Generic.IList<System.Int32> selected

Current selection.

System.Collections.Generic.IList<T> items

Avaible items in the dropdown.

System.Boolean multiSelection

If true then the user can select multiple items. Otherwise the user can only select one item.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Boolean

true when the user has changed the selection. Otherwise false.

Type Parameters
T

Dropdown<T>(Rect, T, T[], String[])
Draws a generic dropdown.
public static T Dropdown<T>(Rect rect, T selected, T[] items, string[] itemNames)
Parameters
UnityEngine.Rect rect

Position and size of the field.

T selected

Current value.

T[] items

System.String[] itemNames

Names of selectable items. If null ToString() will be used instead.

Returns
T

Value assigned to the field.

Type Parameters
T

Dropdown<T>(Rect, IList<Int32>, IList<T>, Boolean)
Draws a dropdown.
public static bool Dropdown<T>(Rect rect, IList<int> selected, IList<T> items, bool multiSelection)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Collections.Generic.IList<System.Int32> selected

Current selection.

System.Collections.Generic.IList<T> items

Avaible items in the dropdown.

System.Boolean multiSelection

If true then the user can select multiple items. Otherwise the user can only select one item.

Returns
System.Boolean

true when the user has changed the selection. Otherwise false.

Type Parameters
T

Dropdown<T>(Rect, String, T, T[], String[])
Draws a generic dropdown.
public static T Dropdown<T>(Rect rect, string label, T selected, T[] items, string[] itemNames)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

Label of field. Set to null for no label.

T selected

Current value.

T[] items

System.String[] itemNames

Names of selectable items. If null ToString() will be used instead.

Returns
T

Value assigned to the field.

Type Parameters
T

Dropdown<T>(Rect, String, IList<Int32>, IList<T>, Boolean)
Draws a dropdown.
public static bool Dropdown<T>(Rect rect, string label, IList<int> selected, IList<T> items, bool multiSelection)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

Label of field. Set to null for no label.

System.Collections.Generic.IList<System.Int32> selected

Current selection.

System.Collections.Generic.IList<T> items

Avaible items in the dropdown.

System.Boolean multiSelection

If true then the user can select multiple items. Otherwise the user can only select one item.

Returns
System.Boolean

true when the user has changed the selection. Otherwise false.

Type Parameters
T

Dropdown<T>(Rect, GUIContent, T, T[], String[])
Draws a generic dropdown.
public static T Dropdown<T>(Rect rect, GUIContent label, T selected, T[] items, string[] itemNames)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

T selected

Current value.

T[] items

System.String[] itemNames

Names of selectable items. If null ToString() will be used instead.

Returns
T

Value assigned to the field.

Type Parameters
T

Dropdown<T>(Rect, GUIContent, T, T[], String[], GUIStyle)
Draws a generic dropdown.
public static T Dropdown<T>(Rect rect, GUIContent label, T selected, T[] items, string[] itemNames, GUIStyle style)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

T selected

Current value.

T[] items

Selectable items.

System.String[] itemNames

Names of selectable items. If null ToString() will be used instead.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

Returns
T

Value assigned to the field.

Type Parameters
T

Dropdown<T>(Rect, GUIContent, T, IList<T>)
Draws a generic dropdown.
public static T Dropdown<T>(Rect rect, GUIContent label, T selected, IList<T> items)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

T selected

Current value.

System.Collections.Generic.IList<T> items

Selectable items.

Returns
T

Value assigned to the field.

Type Parameters
T

Dropdown<T>(Rect, GUIContent, IList<Int32>, IList<T>, Boolean)
Draws a dropdown.
public static bool Dropdown<T>(Rect rect, GUIContent label, IList<int> selected, IList<T> items, bool multiSelection)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Collections.Generic.IList<System.Int32> selected

Current selection.

System.Collections.Generic.IList<T> items

Avaible items in the dropdown.

System.Boolean multiSelection

If true then the user can select multiple items. Otherwise the user can only select one item.

Returns
System.Boolean

true when the user has changed the selection. Otherwise false.

Type Parameters
T

EnumDropdown(Enum, GUILayoutOption[])
Draws a dropdown for an enum or an enum mask.
public static Enum EnumDropdown(Enum selected, params GUILayoutOption[] options)
Parameters
System.Enum selected

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Enum

Value assigned to the field.

EnumDropdown(String, Enum, GUILayoutOption[])
Draws a dropdown for an enum or an enum mask.
public static Enum EnumDropdown(string label, Enum selected, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

System.Enum selected

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Enum

Value assigned to the field.

EnumDropdown(GUIContent, Enum, GUILayoutOption[])
Draws a dropdown for an enum or an enum mask.
public static Enum EnumDropdown(GUIContent label, Enum selected, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Enum selected

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Enum

Value assigned to the field.

EnumDropdown(GUIContent, Enum, GUIStyle, GUILayoutOption[])
Draws a dropdown for an enum or an enum mask.
public static Enum EnumDropdown(GUIContent label, Enum selected, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Enum selected

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Enum

Value assigned to the field.

EnumDropdown(Rect, Enum)
Draws a dropdown for an enum or an enum mask.
public static Enum EnumDropdown(Rect rect, Enum selected)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Enum selected

Current value.

Returns
System.Enum

Value assigned to the field.

EnumDropdown(Rect, String, Enum)
Draws a dropdown for an enum or an enum mask.
public static Enum EnumDropdown(Rect rect, string label, Enum selected)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

Label of field. Set to null for no label.

System.Enum selected

Current value.

Returns
System.Enum

Value assigned to the field.

EnumDropdown(Rect, GUIContent, Enum)
Draws a dropdown for an enum or an enum mask.
public static Enum EnumDropdown(Rect rect, GUIContent label, Enum selected)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Enum selected

Current value.

Returns
System.Enum

Value assigned to the field.

EnumDropdown(Rect, GUIContent, Enum, GUIStyle)
Draws a dropdown for an enum or an enum mask.
public static Enum EnumDropdown(Rect rect, GUIContent label, Enum selected, GUIStyle style)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Enum selected

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

Returns
System.Enum

Value assigned to the field.

EulerField(String, Quaternion, GUILayoutOption[])
Draws an euler field for a quaternion.
public static Quaternion EulerField(string label, Quaternion value, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

UnityEngine.Quaternion value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Quaternion

Value assigned to the field.

EulerField(GUIContent, Quaternion, GUILayoutOption[])
Draws an euler field for a quaternion.
public static Quaternion EulerField(GUIContent label, Quaternion value, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

UnityEngine.Quaternion value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Quaternion

Value assigned to the field.

EulerField(Quaternion, GUILayoutOption[])
Draws an euler field for a quaternion.
public static Quaternion EulerField(Quaternion value, params GUILayoutOption[] options)
Parameters
UnityEngine.Quaternion value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Quaternion

Value assigned to the field.

EulerField(Rect, String, Quaternion)
Draws an euler field for a quaternion.
public static Quaternion EulerField(Rect rect, string label, Quaternion value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

Label of field. Set to null for no label.

UnityEngine.Quaternion value

Current value.

Returns
UnityEngine.Quaternion

Value assigned to the field.

EulerField(Rect, GUIContent, Quaternion)
Draws an euler field for a quaternion.
public static Quaternion EulerField(Rect rect, GUIContent label, Quaternion value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

UnityEngine.Quaternion value

Current value.

Returns
UnityEngine.Quaternion

Value assigned to the field.

EulerField(Rect, Quaternion)
Draws an euler field for a quaternion.
public static Quaternion EulerField(Rect rect, Quaternion value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.Quaternion value

Current value.

Returns
UnityEngine.Quaternion

Value assigned to the field.

FilePathField(String, String, String, Boolean, Boolean, Boolean, GUILayoutOption[])
Draws a field that lets the user select a path to a file.
public static string FilePathField(string path, string parentPath, string extensions, bool absolutePath, bool useBackslashes, bool includeFileExtension = true, params GUILayoutOption[] options)
Parameters
System.String path

The current value.

System.String parentPath

A parent path the path needs to be relative to. Use null for Unity project directory.

System.String extensions

Comma separated list of allowed file extensions. Use null to allow any file extension.

System.Boolean absolutePath

If true the path will be absolute. Otherwise the path will be relative to parentPath or to the Unity project directory.

System.Boolean useBackslashes

If true the path will be enforced to use backslashes. Otherwise the path will be enforced to use forward slashes.

System.Boolean includeFileExtension

If true the file path will include the file's extension.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.String

A path to a file.

FilePathField(String, String, String, Boolean, Boolean, GUILayoutOption[])
Draws a field that lets the user select a path to a file.
public static string FilePathField(string path, string parentPath, string extensions, bool absolutePath, bool useBackslashes, params GUILayoutOption[] options)
Parameters
System.String path

The current value.

System.String parentPath

A parent path the path needs to be relative to. Use null for Unity project directory.

System.String extensions

Comma separated list of allowed file extensions. Use null to allow any file extension.

System.Boolean absolutePath

If true the path will be absolute. Otherwise the path will be relative to parentPath or to the Unity project directory.

System.Boolean useBackslashes

If true the path will be enforced to use backslashes. Otherwise the path will be enforced to use forward slashes.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.String

A path to a file.

FilePathField(GUIContent, String, String, String, Boolean, Boolean, Boolean, GUILayoutOption[])
Draws a field that lets the user select a path to a file.
public static string FilePathField(GUIContent label, string path, string parentPath, string extensions, bool absolutePath, bool useBackslashes, bool includeFileExtension = true, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.String path

The current value.

System.String parentPath

A parent path the path needs to be relative to. Use null for Unity project directory.

System.String extensions

Comma separated list of allowed file extensions. Use null to allow any file extension.

System.Boolean absolutePath

If true the path will be absolute. Otherwise the path will be relative to parentPath or to the Unity project directory.

System.Boolean useBackslashes

If true the path will be enforced to use backslashes. Otherwise the path will be enforced to use forward slashes.

System.Boolean includeFileExtension

If true the file path will include the file's extension.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.String

A path to a file.

FilePathField(GUIContent, String, String, String, Boolean, Boolean, GUILayoutOption[])
Draws a field that lets the user select a path to a file.
public static string FilePathField(GUIContent label, string path, string parentPath, string extensions, bool absolutePath, bool useBackslashes, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.String path

The current value.

System.String parentPath

A parent path the path needs to be relative to. Use null for Unity project directory.

System.String extensions

Comma separated list of allowed file extensions. Use null to allow any file extension.

System.Boolean absolutePath

If true the path will be absolute. Otherwise the path will be relative to parentPath or to the Unity project directory.

System.Boolean useBackslashes

If true the path will be enforced to use backslashes. Otherwise the path will be enforced to use forward slashes.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.String

A path to a file.

FilePathField(Rect, String, String, String, Boolean, Boolean, Boolean)
Draws a field that lets the user select a path to a file.
public static string FilePathField(Rect rect, string path, string parentPath, string extensions, bool absolutePath, bool useBackslashes, bool includeFileExtension)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String path

The current value.

System.String parentPath

A parent path the path needs to be relative to. Use null for Unity project directory.

System.String extensions

Comma separated list of allowed file extensions. Use null to allow any file extension.

System.Boolean absolutePath

If true the path will be absolute. Otherwise the path will be relative to parentPath or to the Unity project directory.

System.Boolean useBackslashes

If true the path will be enforced to use backslashes. Otherwise the path will be enforced to use forward slashes.

System.Boolean includeFileExtension

If true the file path will include the file's extension.

Returns
System.String

A path to a file.

FilePathField(Rect, GUIContent, String, String, String, Boolean, Boolean, Boolean)
Draws a field that lets the user select a path to a file.
public static string FilePathField(Rect rect, GUIContent label, string path, string parentPath, string extensions, bool absolutePath, bool useBackslashes, bool includeFileExtension = true)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.String path

The current value.

System.String parentPath

A parent path the path needs to be relative to. Use null for Unity project directory.

System.String extensions

Comma separated list of allowed file extensions. Use null to allow any file extension.

System.Boolean absolutePath

If true the path will be absolute. Otherwise the path will be relative to parentPath or to the Unity project directory.

System.Boolean useBackslashes

If true the path will be enforced to use backslashes. Otherwise the path will be enforced to use forward slashes.

System.Boolean includeFileExtension

If true the file path will include the file's extension.

Returns
System.String

A path to a file.

FloatField(Single, GUILayoutOption[])
Draws a float field.
public static float FloatField(float value, params GUILayoutOption[] options)
Parameters
System.Single value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Single

Value assigned to the field.

FloatField(String, Single, GUILayoutOption[])
Draws a float field.
public static float FloatField(string label, float value, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

System.Single value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Single

Value assigned to the field.

FloatField(GUIContent, Single, GUILayoutOption[])
Draws a float field.
public static float FloatField(GUIContent label, float value, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Single value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Single

Value assigned to the field.

FloatField(GUIContent, Single, GUIStyle, GUILayoutOption[])
Draws a float field.
public static float FloatField(GUIContent label, float value, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Single value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Single

Value assigned to the field.

FloatField(Rect, Single)
Draws a float field.
public static float FloatField(Rect rect, float value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Single value

Current value.

Returns
System.Single

Value assigned to the field.

FloatField(Rect, String, Single)
Draws a float field.
public static float FloatField(Rect rect, string label, float value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

Label of field. Set to null for no label.

System.Single value

Current value.

Returns
System.Single

Value assigned to the field.

FloatField(Rect, GUIContent, Single)
Draws a float field.
public static float FloatField(Rect rect, GUIContent label, float value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Single value

Current value.

Returns
System.Single

Value assigned to the field.

FloatField(Rect, GUIContent, Single, GUIStyle)
Draws a float field.
public static float FloatField(Rect rect, GUIContent label, float value, GUIStyle style)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Single value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

Returns
System.Single

Value assigned to the field.

FloatUnitField(Single, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a float field that supports unit conversions.
public static float FloatUnitField(float value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
System.Single value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Single

Value assigned to the field.

FloatUnitField(String, Single, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a float field that supports unit conversions.
public static float FloatUnitField(string label, float value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
System.String label

System.Single value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Single

Value assigned to the field.

FloatUnitField(GUIContent, Single, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a float field that supports unit conversions.
public static float FloatUnitField(GUIContent label, float value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Single value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Single

Value assigned to the field.

FloatUnitField(GUIContent, Single, UnitInfo, UnitInfo, GUIStyle, GUILayoutOption[])
Draws a float field that supports unit conversions.
public static float FloatUnitField(GUIContent label, float value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Single value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUIStyle style

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Single

Value assigned to the field.

FloatUnitField(Rect, Single, UnitInfo, UnitInfo)
Draws a float field that supports unit conversions.
public static float FloatUnitField(Rect rect, float value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
UnityEngine.Rect rect

System.Single value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

Returns
System.Single

Value assigned to the field.

FloatUnitField(Rect, String, Single, UnitInfo, UnitInfo)
Draws a float field that supports unit conversions.
public static float FloatUnitField(Rect rect, string label, float value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
UnityEngine.Rect rect

System.String label

System.Single value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

Returns
System.Single

Value assigned to the field.

FloatUnitField(Rect, GUIContent, Single, UnitInfo, UnitInfo)
Draws a float field that supports unit conversions.
public static float FloatUnitField(Rect rect, GUIContent label, float value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Single value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

Returns
System.Single

Value assigned to the field.

FloatUnitField(Rect, GUIContent, Single, UnitInfo, UnitInfo, GUIStyle)
Draws a float field that supports unit conversions.
public static float FloatUnitField(Rect rect, GUIContent label, float value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, GUIStyle style)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Single value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

Returns
System.Single

Value assigned to the field.

FolderPathField(String, String, Boolean, Boolean, GUILayoutOption[])
Draws a field that lets the user select a path to a folder.
public static string FolderPathField(string path, string parentPath, bool absolutePath, bool useBackslashes, params GUILayoutOption[] options)
Parameters
System.String path

The current value.

System.String parentPath

A parent path the path needs to be relative to. Use null for Unity project directory.

System.Boolean absolutePath

If true the path will be absolute. Otherwise the path will be relative to parentPath or to the Unity project directory.

System.Boolean useBackslashes

If true the path will be enforced to use backslashes. Otherwise the path will be enforced to use forward slashes.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.String

A path to a folder.

FolderPathField(GUIContent, String, String, Boolean, Boolean, GUILayoutOption[])
Draws a field that lets the user select a path to a folder.
public static string FolderPathField(GUIContent label, string path, string parentPath, bool absolutePath, bool useBackslashes, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.String path

The current value.

System.String parentPath

A parent path the path needs to be relative to. Use null for Unity project directory.

System.Boolean absolutePath

If true the path will be absolute. Otherwise the path will be relative to parentPath or to the Unity project directory.

System.Boolean useBackslashes

If true the path will be enforced to use backslashes. Otherwise the path will be enforced to use forward slashes.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.String

A path to a folder.

FolderPathField(Rect, String, String, Boolean, Boolean)
Draws a field that lets the user select a path to a folder.
public static string FolderPathField(Rect rect, string path, string parentPath, bool absolutePath, bool useBackslashes)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String path

The current value.

System.String parentPath

A parent path the path needs to be relative to. Use null for Unity project directory.

System.Boolean absolutePath

If true the path will be absolute. Otherwise the path will be relative to parentPath or to the Unity project directory.

System.Boolean useBackslashes

If true the path will be enforced to use backslashes. Otherwise the path will be enforced to use forward slashes.

Returns
System.String

A path to a folder.

FolderPathField(Rect, GUIContent, String, String, Boolean, Boolean)
Draws a field that lets the user select a path to a folder.
public static string FolderPathField(Rect rect, GUIContent label, string path, string parentPath, bool absolutePath, bool useBackslashes)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.String path

The current value.

System.String parentPath

A parent path the path needs to be relative to. Use null for Unity project directory.

System.Boolean absolutePath

If true the path will be absolute. Otherwise the path will be relative to parentPath or to the Unity project directory.

System.Boolean useBackslashes

If true the path will be enforced to use backslashes. Otherwise the path will be enforced to use forward slashes.

Returns
System.String

A path to a folder.

GuidField(GUIContent, Guid)
Draws a Guid field.
public static Guid GuidField(GUIContent label, Guid value)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Guid value

Current value.

Returns
System.Guid

Value assigned to the field.

GuidField(GUIContent, Guid, GUILayoutOption[])
Draws a Guid field.
public static Guid GuidField(GUIContent label, Guid value, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Guid value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Guid

Value assigned to the field.

GuidField(GUIContent, Guid, GUIStyle, GUILayoutOption[])
Draws a Guid field.
public static Guid GuidField(GUIContent label, Guid value, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Guid value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Guid

Value assigned to the field.

GuidField(Rect, Guid)
Draws a Guid field.
public static Guid GuidField(Rect rect, Guid value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Guid value

Current value.

Returns
System.Guid

Value assigned to the field.

GuidField(Rect, GUIContent, Guid)
Draws a Guid field.
public static Guid GuidField(Rect rect, GUIContent label, Guid value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Guid value

Current value.

Returns
System.Guid

Value assigned to the field.

GuidField(Rect, GUIContent, Guid, GUIStyle)
Draws a Guid field.
public static Guid GuidField(Rect rect, GUIContent label, Guid value, GUIStyle style)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Guid value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

Returns
System.Guid

Value assigned to the field.

IntField(Int32, GUILayoutOption[])
Draws an int field.
public static int IntField(int value, params GUILayoutOption[] options)
Parameters
System.Int32 value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

IntField(String, Int32, GUILayoutOption[])
Draws an int field.
public static int IntField(string label, int value, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

System.Int32 value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

IntField(GUIContent, Int32, GUILayoutOption[])
Draws an int field.
public static int IntField(GUIContent label, int value, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

IntField(GUIContent, Int32, GUIStyle, GUILayoutOption[])
Draws an int field.
public static int IntField(GUIContent label, int value, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

IntField(Rect, Int32)
Draws an int field.
public static int IntField(Rect rect, int value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Int32 value

Current value.

Returns
System.Int32

Value assigned to the field.

IntField(Rect, String, Int32)
Draws an int field.
public static int IntField(Rect rect, string label, int value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

Label of field. Set to null for no label.

System.Int32 value

Current value.

Returns
System.Int32

Value assigned to the field.

IntField(Rect, GUIContent, Int32)
Draws an int field.
public static int IntField(Rect rect, GUIContent label, int value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 value

Current value.

Returns
System.Int32

Value assigned to the field.

IntField(Rect, GUIContent, Int32, GUIStyle)
Draws an int field.
public static int IntField(Rect rect, GUIContent label, int value, GUIStyle style)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 value

Current value.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

Returns
System.Int32

Value assigned to the field.

IntUnitField(Int32, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a int field that supports unit conversions.
public static int IntUnitField(int value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
System.Int32 value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

IntUnitField(String, Int32, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a int field that supports unit conversions.
public static int IntUnitField(string label, int value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
System.String label

System.Int32 value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

IntUnitField(GUIContent, Int32, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a int field that supports unit conversions.
public static int IntUnitField(GUIContent label, int value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

IntUnitField(GUIContent, Int32, UnitInfo, UnitInfo, GUIStyle, GUILayoutOption[])
Draws a int field that supports unit conversions.
public static int IntUnitField(GUIContent label, int value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUIStyle style

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

IntUnitField(Rect, Int32, UnitInfo, UnitInfo)
Draws a int field that supports unit conversions.
public static int IntUnitField(Rect rect, int value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
UnityEngine.Rect rect

System.Int32 value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

Returns
System.Int32

Value assigned to the field.

IntUnitField(Rect, String, Int32, UnitInfo, UnitInfo)
Draws a int field that supports unit conversions.
public static int IntUnitField(Rect rect, string label, int value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
UnityEngine.Rect rect

System.String label

System.Int32 value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

Returns
System.Int32

Value assigned to the field.

IntUnitField(Rect, GUIContent, Int32, UnitInfo, UnitInfo)
Draws a int field that supports unit conversions.
public static int IntUnitField(Rect rect, GUIContent label, int value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

Returns
System.Int32

Value assigned to the field.

IntUnitField(Rect, GUIContent, Int32, UnitInfo, UnitInfo, GUIStyle)
Draws a int field that supports unit conversions.
public static int IntUnitField(Rect rect, GUIContent label, int value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, GUIStyle style)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 value

Current value.

UnitInfo baseUnitInfo

UnitInfo of the value and return value. Must have same UnitCategory as displayUnitInfo.

UnitInfo displayUnitInfo

UnitInfo of the displayed value in the field, converted from baseUnitInfo. Must have same UnitCategory as baseUnitInfo.

UnityEngine.GUIStyle style

GUIStyle for drawing the field. Set to null for default.

Returns
System.Int32

Value assigned to the field.

LayerMaskField(String, LayerMask, GUILayoutOption[])
Draws a field for a layer mask.
public static LayerMask LayerMaskField(string label, LayerMask layerMask, params GUILayoutOption[] options)
Parameters
System.String label

The label to use, or null if no label should be used.

UnityEngine.LayerMask layerMask

The layer mask to draw.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.LayerMask