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

LayerMaskField(GUIContent, LayerMask, GUILayoutOption[])
Draws a field for a layer mask.
public static LayerMask LayerMaskField(GUIContent label, LayerMask layerMask, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent 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

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

The layer mask to draw.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.LayerMask

LayerMaskField(Rect, String, LayerMask)
Draws a field for a layer mask.
public static LayerMask LayerMaskField(Rect rect, string label, LayerMask layerMask)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

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

UnityEngine.LayerMask layerMask

The layer mask to draw.

Returns
UnityEngine.LayerMask

LayerMaskField(Rect, GUIContent, LayerMask)
Draws a field for a layer mask.
public static LayerMask LayerMaskField(Rect rect, GUIContent label, LayerMask layerMask)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

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

UnityEngine.LayerMask layerMask

The layer mask to draw.

Returns
UnityEngine.LayerMask

LayerMaskField(Rect, LayerMask)
Draws a field for a layer mask.
public static LayerMask LayerMaskField(Rect rect, LayerMask layerMask)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.LayerMask layerMask

The layer mask to draw.

Returns
UnityEngine.LayerMask

LongField(Int64, GUILayoutOption[])
Draws an long field.
public static long LongField(long value, params GUILayoutOption[] options)
Parameters
System.Int64 value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int64

Value assigned to the field.

LongField(String, Int64, GUILayoutOption[])
Draws an long field.
public static long LongField(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.

LongField(GUIContent, Int64, GUILayoutOption[])
Draws an long field.
public static long LongField(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.

LongField(GUIContent, Int64, GUIStyle, GUILayoutOption[])
Draws an long field.
public static long LongField(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.

LongField(Rect, Int64)
Draws an long field.
public static long LongField(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.

LongField(Rect, String, Int64)
Draws an long field.
public static long LongField(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.

LongField(Rect, GUIContent, Int64)
Draws an long field.
public static long LongField(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.

LongField(Rect, GUIContent, Int64, GUIStyle)
Draws an long field.
public static long LongField(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.

LongUnitField(Int64, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a long field that supports unit conversions.
public static long LongUnitField(long value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
System.Int64 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.Int64

Value assigned to the field.

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

System.Int64 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.Int64

Value assigned to the field.

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

Label of field. Set to null for no label.

System.Int64 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.Int64

Value assigned to the field.

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

Label of field. Set to null for no label.

System.Int64 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.Int64

Value assigned to the field.

LongUnitField(Rect, Int64, UnitInfo, UnitInfo)
Draws a long field that supports unit conversions.
public static long LongUnitField(Rect rect, long value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
UnityEngine.Rect rect

System.Int64 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.Int64

Value assigned to the field.

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

System.String label

System.Int64 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.Int64

Value assigned to the field.

LongUnitField(Rect, GUIContent, Int64, UnitInfo, UnitInfo)
Draws a long field that supports unit conversions.
public static long LongUnitField(Rect rect, GUIContent label, long 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.Int64 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.Int64

Value assigned to the field.

LongUnitField(Rect, GUIContent, Int64, UnitInfo, UnitInfo, GUIStyle)
Draws a long field that supports unit conversions.
public static long LongUnitField(Rect rect, GUIContent label, long 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.Int64 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.Int64

Value assigned to the field.

MinMaxSlider(ref Single, ref Single, Single, Single, Boolean, GUILayoutOption[])
Draws a slider for setting two values between a min and a max limit.
public static void MinMaxSlider(ref float minValue, ref float maxValue, float minLimit, float maxLimit, bool showFields, params GUILayoutOption[] options)
Parameters
System.Single minValue

Current min value.

System.Single maxValue

Current max value.

System.Single minLimit

The min limit for the value.

System.Single maxLimit

The max limit for the value.

System.Boolean showFields

Show fields for min and max value.

UnityEngine.GUILayoutOption[] options

Layout options.

MinMaxSlider(String, ref Single, ref Single, Single, Single, Boolean, GUILayoutOption[])
Draws a slider for setting two values between a min and a max limit.
public static void MinMaxSlider(string label, ref float minValue, ref float maxValue, float minLimit, float maxLimit, bool showFields = false, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

System.Single minValue

Current min value.

System.Single maxValue

Current max value.

System.Single minLimit

The min limit for the value.

System.Single maxLimit

The max limit for the value.

System.Boolean showFields

Show fields for min and max value.

UnityEngine.GUILayoutOption[] options

Layout options.

MinMaxSlider(String, Vector2, Vector2, Boolean, GUILayoutOption[])
Draws a slider for setting two values between a min and a max limit.
public static Vector2 MinMaxSlider(string label, Vector2 value, Vector2 limits, bool showFields = false, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

UnityEngine.Vector2 value

Current value.

UnityEngine.Vector2 limits

The min and max limit for the value.

System.Boolean showFields

Show fields for min and max value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Vector2

A Vector2 with X set as min value, and Y to set as max value.

MinMaxSlider(GUIContent, ref Single, ref Single, Single, Single, Boolean, GUILayoutOption[])
Draws a slider for setting two values between a min and a max limit.
public static void MinMaxSlider(GUIContent label, ref float minValue, ref float maxValue, float minLimit, float maxLimit, bool showFields = false, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Single minValue

Current min value.

System.Single maxValue

Current max value.

System.Single minLimit

The min limit for the value.

System.Single maxLimit

The max limit for the value.

System.Boolean showFields

Show fields for min and max value.

UnityEngine.GUILayoutOption[] options

Layout options.

MinMaxSlider(GUIContent, Vector2, Vector2, Boolean, GUILayoutOption[])
Draws a slider for setting two values between a min and a max limit.
public static Vector2 MinMaxSlider(GUIContent label, Vector2 value, Vector2 limits, bool showFields = false, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

UnityEngine.Vector2 value

Current value.

UnityEngine.Vector2 limits

The min and max limit for the value.

System.Boolean showFields

Show fields for min and max value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Vector2

A Vector2 with X set as min value, and Y to set as max value.

MinMaxSlider(Rect, ref Single, ref Single, Single, Single, Boolean)
Draws a slider for setting two values between a min and a max limit.
public static void MinMaxSlider(Rect rect, ref float minValue, ref float maxValue, float minLimit, float maxLimit, bool showFields)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Single minValue

Current min value.

System.Single maxValue

Current max value.

System.Single minLimit

The min limit for the value.

System.Single maxLimit

The max limit for the value.

System.Boolean showFields

Show fields for min and max value.

MinMaxSlider(Rect, String, ref Single, ref Single, Single, Single, Boolean)
Draws a slider for setting two values between a min and a max limit.
public static void MinMaxSlider(Rect rect, string label, ref float minValue, ref float maxValue, float minLimit, float maxLimit, bool showFields = false)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

Label of field. Set to null for no label.

System.Single minValue

Current min value.

System.Single maxValue

Current max value.

System.Single minLimit

The min limit for the value.

System.Single maxLimit

The max limit for the value.

System.Boolean showFields

Show fields for min and max value.

MinMaxSlider(Rect, String, Vector2, Vector2, Boolean)
Draws a slider for setting two values between a min and a max limit.
public static Vector2 MinMaxSlider(Rect rect, string label, Vector2 value, Vector2 limits, bool showFields = false)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

Label of field. Set to null for no label.

UnityEngine.Vector2 value

Current value.

UnityEngine.Vector2 limits

The min and max limit for the value.

System.Boolean showFields

Show fields for min and max value.

Returns
UnityEngine.Vector2

A Vector2 with X set as min value, and Y to set as max value.

MinMaxSlider(Rect, GUIContent, ref Single, ref Single, Single, Single, Boolean)
Draws a slider for setting two values between a min and a max limit.
public static void MinMaxSlider(Rect rect, GUIContent label, ref float minValue, ref float maxValue, float minLimit, float maxLimit, bool showFields = false)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Single minValue

Current min value.

System.Single maxValue

Current max value.

System.Single minLimit

The min limit for the value.

System.Single maxLimit

The max limit for the value.

System.Boolean showFields

Show fields for min and max value.

MinMaxSlider(Rect, GUIContent, Vector2, Vector2, Boolean)
Draws a slider for setting two values between a min and a max limit.
public static Vector2 MinMaxSlider(Rect rect, GUIContent label, Vector2 value, Vector2 limits, bool showFields = false)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

UnityEngine.Vector2 value

Current value.

UnityEngine.Vector2 limits

The min and max limit for the value.

System.Boolean showFields

Show fields for min and max value.

Returns
UnityEngine.Vector2

A Vector2 with X set as min value, and Y to set as max value.

MinMaxSlider(Rect, Vector2, Vector2, Boolean)
Draws a slider for setting two values between a min and a max limit.
public static Vector2 MinMaxSlider(Rect rect, Vector2 value, Vector2 limits, bool showFields)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.Vector2 value

Current value.

UnityEngine.Vector2 limits

The min and max limit for the value.

System.Boolean showFields

Show fields for min and max value.

Returns
UnityEngine.Vector2

A Vector2 with X set as min value, and Y to set as max value.

MinMaxSlider(Vector2, Vector2, Boolean, GUILayoutOption[])
Draws a slider for setting two values between a min and a max limit.
public static Vector2 MinMaxSlider(Vector2 value, Vector2 limits, bool showFields, params GUILayoutOption[] options)
Parameters
UnityEngine.Vector2 value

Current value.

UnityEngine.Vector2 limits

The min and max limit for the value.

System.Boolean showFields

Show fields for min and max value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Vector2

A Vector2 with X set as min value, and Y to set as max value.

PolymorphicObjectField(Object, Type, Boolean, GUILayoutOption[])
Draws a polymorphic ObjectField.
public static object PolymorphicObjectField(object value, Type type, bool allowSceneObjects, params GUILayoutOption[] options)
Parameters
System.Object value

The value.

System.Type type

The object type. This supports inheritance.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Object

PolymorphicObjectField(Object, Type, String, Boolean, GUILayoutOption[])
Draws a polymorphic ObjectField.
public static object PolymorphicObjectField(object value, Type type, string title, bool allowSceneObjects, params GUILayoutOption[] options)
Parameters
System.Object value

The value.

System.Type type

The object type. This supports inheritance.

System.String title

The title to be shown in the object picker.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Object

PolymorphicObjectField(String, Object, Type, Boolean, GUILayoutOption[])
Draws a polymorphic ObjectField.
public static object PolymorphicObjectField(string label, object value, Type type, bool allowSceneObjects, params GUILayoutOption[] options)
Parameters
System.String label

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

System.Object value

The value.

System.Type type

The object type. This supports inheritance.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Object

PolymorphicObjectField(GUIContent, Object, Type, Boolean, GUILayoutOption[])
Draws a polymorphic ObjectField.
public static object PolymorphicObjectField(GUIContent label, object value, Type type, bool allowSceneObjects, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

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

System.Object value

The value.

System.Type type

The object type. This supports inheritance.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Object

PolymorphicObjectField(GUIContent, Object, Type, String, Boolean, GUILayoutOption[])
Draws a polymorphic ObjectField.
public static object PolymorphicObjectField(GUIContent label, object value, Type type, string title, bool allowSceneObjects, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

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

System.Object value

The value.

System.Type type

The object type. This supports inheritance.

System.String title

The title to be shown in the object picker.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Object

PolymorphicObjectField(Rect, Object, Type, Boolean, Boolean, Int32)
Draws a polymorphic ObjectField.
public static object PolymorphicObjectField(Rect rect, object value, Type type, bool allowSceneObjects, bool hasKeyboardFocus, int id)
Parameters
UnityEngine.Rect rect

System.Object value

System.Type type

System.Boolean allowSceneObjects

System.Boolean hasKeyboardFocus

System.Int32 id

Returns
System.Object

PolymorphicObjectField(Rect, Object, Type, String, Boolean, Boolean, Int32)
public static object PolymorphicObjectField(Rect rect, object value, Type type, string title, bool allowSceneObjects, bool hasKeyboardFocus, int id)
Parameters
UnityEngine.Rect rect

System.Object value

System.Type type

System.String title

System.Boolean allowSceneObjects

System.Boolean hasKeyboardFocus

System.Int32 id

Returns
System.Object

PolymorphicObjectField(Rect, GUIContent, Object, Type, Boolean)
Draws a polymorphic ObjectField.
public static object PolymorphicObjectField(Rect rect, GUIContent label, object value, Type type, bool allowSceneObjects)
Parameters
UnityEngine.Rect rect

UnityEngine.GUIContent label

System.Object value

System.Type type

System.Boolean allowSceneObjects

Returns
System.Object

PreviewObjectField<TElement>(Rect, TElement, Boolean, Boolean, Boolean, Boolean)
Draws a square ObjectField which renders a preview for UnityEngine.Object types. This object field also adds support for drag and drop, dragging an object to another square object field, swaps the values. If you hold down control while letting go it will replace the value, And you can control + click the object field to quickly delete the value it holds.
public static TElement PreviewObjectField<TElement>(Rect rect, TElement value, bool dragOnly = false, bool allowMove = true, bool allowSwap = true, bool allowSceneObjects = true)
Parameters
UnityEngine.Rect rect

TElement value

System.Boolean dragOnly

System.Boolean allowMove

System.Boolean allowSwap

System.Boolean allowSceneObjects

Returns
TElement

Type Parameters
TElement

ProgressBarField(Double, Double, Double, ProgressBarConfig, GUILayoutOption[])
Draws a colored progress bar field.
public static double ProgressBarField(double value, double minValue, double maxValue, ProgressBarConfig config, params GUILayoutOption[] options)
Parameters
System.Double value

The current value of the progress bar.

System.Double minValue

The left hand side value of the progress bar.

System.Double maxValue

The right hand side value of the progress bar.

ProgressBarConfig config

The configuration for the progress bar field.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

ProgressBarField(Double, Double, Double, GUILayoutOption[])
Draws a colored progress bar field.
public static double ProgressBarField(double value, double minValue, double maxValue, params GUILayoutOption[] options)
Parameters
System.Double value

The current value of the progress bar.

System.Double minValue

The left hand side value of the progress bar.

System.Double maxValue

The right hand side value of the progress bar.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

ProgressBarField(String, Double, Double, Double, ProgressBarConfig, GUILayoutOption[])
Draws a colored progress bar field.
public static double ProgressBarField(string label, double value, double minValue, double maxValue, ProgressBarConfig config, params GUILayoutOption[] options)
Parameters
System.String label

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

System.Double value

The current value of the progress bar.

System.Double minValue

The left hand side value of the progress bar.

System.Double maxValue

The right hand side value of the progress bar.

ProgressBarConfig config

The configuration for the progress bar field.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

ProgressBarField(String, Double, Double, Double, GUILayoutOption[])
Draws a colored progress bar field.
public static double ProgressBarField(string label, double value, double minValue, double maxValue, params GUILayoutOption[] options)
Parameters
System.String label

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

System.Double value

The current value of the progress bar.

System.Double minValue

The left hand side value of the progress bar.

System.Double maxValue

The right hand side value of the progress bar.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

ProgressBarField(GUIContent, Double, Double, Double, ProgressBarConfig, GUILayoutOption[])
Draws a colored progress bar field.
public static double ProgressBarField(GUIContent label, double value, double minValue, double maxValue, ProgressBarConfig config, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

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

System.Double value

The current value of the progress bar.

System.Double minValue

The left hand side value of the progress bar.

System.Double maxValue

The right hand side value of the progress bar.

ProgressBarConfig config

The configuration for the progress bar field.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

ProgressBarField(GUIContent, Double, Double, Double, GUILayoutOption[])
Draws a colored progress bar field.
public static double ProgressBarField(GUIContent label, double value, double minValue, double maxValue, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

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

System.Double value

The current value of the progress bar.

System.Double minValue

The left hand side value of the progress bar.

System.Double maxValue

The right hand side value of the progress bar.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

ProgressBarField(Rect, Double, Double, Double)
Draws a colored progress bar field.
public static double ProgressBarField(Rect rect, double value, double minValue, double maxValue)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Double value

The current value of the progress bar.

System.Double minValue

The left hand side value of the progress bar.

System.Double maxValue

The right hand side value of the progress bar.

Returns
System.Double

ProgressBarField(Rect, Double, Double, Double, ProgressBarConfig)
Draws a colored progress bar field.
public static double ProgressBarField(Rect rect, double value, double minValue, double maxValue, ProgressBarConfig config)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Double value

The current value of the progress bar.

System.Double minValue

The left hand side value of the progress bar.

System.Double maxValue

The right hand side value of the progress bar.

ProgressBarConfig config

The configuration for the progress bar field.

Returns
System.Double

ProgressBarField(Rect, String, Double, Double, Double)
Draws a colored progress bar field.
public static double ProgressBarField(Rect rect, string label, double value, double minValue, double maxValue)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

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

System.Double value

The current value of the progress bar.

System.Double minValue

The left hand side value of the progress bar.

System.Double maxValue

The right hand side value of the progress bar.

Returns
System.Double

ProgressBarField(Rect, String, Double, Double, Double, ProgressBarConfig)
Draws a colored progress bar field.
public static double ProgressBarField(Rect rect, string label, double value, double minValue, double maxValue, ProgressBarConfig config)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

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

System.Double value

The current value of the progress bar.

System.Double minValue

The left hand side value of the progress bar.

System.Double maxValue

The right hand side value of the progress bar.

ProgressBarConfig config

The configuration for the progress bar field.

Returns
System.Double

ProgressBarField(Rect, GUIContent, Double, Double, Double)
Draws a colored progress bar field.
public static double ProgressBarField(Rect rect, GUIContent label, double value, double minValue, double maxValue)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

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

System.Double value

The current value of the progress bar.

System.Double minValue

The left hand side value of the progress bar.

System.Double maxValue

The right hand side value of the progress bar.

Returns
System.Double

ProgressBarField(Rect, GUIContent, Double, Double, Double, ProgressBarConfig)
Draws a colored progress bar field.
public static double ProgressBarField(Rect rect, GUIContent label, double value, double minValue, double maxValue, ProgressBarConfig config)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

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

System.Double value

The current value of the progress bar.

System.Double minValue

The left hand side value of the progress bar.

System.Double maxValue

The right hand side value of the progress bar.

ProgressBarConfig config

The configuration for the progress bar field.

Returns
System.Double

ProgressBarField(Rect, GUIContent, Double, Double, Double, ProgressBarConfig, String)
Draws a colored progress bar field.
public static double ProgressBarField(Rect rect, GUIContent label, double value, double minValue, double maxValue, ProgressBarConfig config, string valueLabel)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

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

System.Double value

The current value of the progress bar.

System.Double minValue

The left hand side value of the progress bar.

System.Double maxValue

The right hand side value of the progress bar.

ProgressBarConfig config

The configuration for the progress bar field.

System.String valueLabel

Optional text for label to be drawn ontop of the progress bar. This value is only used if the DrawValueLabel option is enabled in the ProgressBarConfig.

Returns
System.Double

ProgressBarOverlayLabel(Rect, GUIContent, Single, ProgressBarConfig)
Draws an overlay on top of a progress bar field.
public static void ProgressBarOverlayLabel(Rect rect, GUIContent label, float progress, ProgressBarConfig config)
Parameters
UnityEngine.Rect rect

The rect used to draw the progress bar field with. (Minus the Rect for the prefix label, if any.)

UnityEngine.GUIContent label

The label to draw ontop of the progress bar field.

System.Single progress

The relative value of the progress bar, from 0 to 1.

ProgressBarConfig config

The configuration used to draw the progress bar field.

QuaternionField(String, Quaternion, GUILayoutOption[])
Draws a quaternion field.
public static Quaternion QuaternionField(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.

QuaternionField(GUIContent, Quaternion, GUILayoutOption[])
Draws a quaternion field.
public static Quaternion QuaternionField(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.

QuaternionField(Quaternion, GUILayoutOption[])
Draws a quaternion field.
public static Quaternion QuaternionField(Quaternion value, params GUILayoutOption[] options)
Parameters
UnityEngine.Quaternion value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Quaternion

Value assigned to the field.

QuaternionField(Rect, String, Quaternion)
Draws a quaternion field.
public static Quaternion QuaternionField(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.

QuaternionField(Rect, GUIContent, Quaternion)
Draws a quaternion field.
public static Quaternion QuaternionField(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.

QuaternionField(Rect, Quaternion)
Draws a quaternion field.
public static Quaternion QuaternionField(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.

RangeFloatField(Single, Single, Single, GUILayoutOption[])
Draws a range field for floats.
public static float RangeFloatField(float value, float min, float max, params GUILayoutOption[] options)
Parameters
System.Single value

Current value.

System.Single min

Minimum value.

System.Single max

Maximum value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Single

Value assigned to the field.

RangeFloatField(String, Single, Single, Single, GUILayoutOption[])
Draws a range field for floats.
public static float RangeFloatField(string label, float value, float min, float max, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

System.Single value

Current value.

System.Single min

Minimum value.

System.Single max

Maximum value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Single

Value assigned to the field.

RangeFloatField(GUIContent, Single, Single, Single, GUILayoutOption[])
Draws a range field for floats.
public static float RangeFloatField(GUIContent label, float value, float min, float max, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Single value

Current value.

System.Single min

Minimum value.

System.Single max

Maximum value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Single

Value assigned to the field.

RangeFloatField(GUIContent, Single, Single, Single, GUIStyle, GUILayoutOption[])
Draws a range field for floats.
public static float RangeFloatField(GUIContent label, float value, float min, float max, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Single value

Current value.

System.Single min

Minimum value.

System.Single max

Maximum 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.

RangeFloatField(Rect, Single, Single, Single)
Draws a range field for floats.
public static float RangeFloatField(Rect rect, float value, float min, float max)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Single value

Current value.

System.Single min

Minimum value.

System.Single max

Maximum value.

Returns
System.Single

Value assigned to the field.

RangeFloatField(Rect, String, Single, Single, Single)
Draws a range field for floats.
public static float RangeFloatField(Rect rect, string label, float value, float min, float max)
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.

System.Single min

Minimum value.

System.Single max

Maximum value.

Returns
System.Single

Value assigned to the field.

RangeFloatField(Rect, GUIContent, Single, Single, Single)
Draws a range field for floats.
public static float RangeFloatField(Rect rect, GUIContent label, float value, float min, float max)
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.

System.Single min

Minimum value.

System.Single max

Maximum value.

Returns
System.Single

Value assigned to the field.

RangeFloatField(Rect, GUIContent, Single, Single, Single, GUIStyle)
Draws a range field for floats.
public static float RangeFloatField(Rect rect, GUIContent label, float value, float min, float max, 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.

System.Single min

Minimum value.

System.Single max

Maximum value.

UnityEngine.GUIStyle style

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

Returns
System.Single

Value assigned to the field.

RangeIntField(Int32, Int32, Int32, GUILayoutOption[])
Draws a range field for ints.
public static int RangeIntField(int value, int min, int max, params GUILayoutOption[] options)
Parameters
System.Int32 value

Current value.

System.Int32 min

Minimum value.

System.Int32 max

Maximum value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

RangeIntField(String, Int32, Int32, Int32, GUILayoutOption[])
Draws a range field for ints.
public static int RangeIntField(string label, int value, int min, int max, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

System.Int32 value

Current value.

System.Int32 min

Minimum value.

System.Int32 max

Maximum value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

RangeIntField(GUIContent, Int32, Int32, Int32, GUILayoutOption[])
Draws a range field for ints.
public static int RangeIntField(GUIContent label, int value, int min, int max, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 value

Current value.

System.Int32 min

Minimum value.

System.Int32 max

Maximum value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

RangeIntField(GUIContent, Int32, Int32, Int32, GUIStyle, GUILayoutOption[])
Drwas a range field for ints.
public static int RangeIntField(GUIContent label, int value, int min, int max, GUIStyle style, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 value

Current value.

System.Int32 min

Minimum value.

System.Int32 max

Maximum 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.

RangeIntField(Rect, Int32, Int32, Int32)
Draws a range field for ints.
public static int RangeIntField(Rect rect, int value, int min, int max)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Int32 value

Current value.

System.Int32 min

Minimum value.

System.Int32 max

Maximum value.

Returns
System.Int32

Value assigned to the field.

RangeIntField(Rect, String, Int32, Int32, Int32)
Draws a range field for ints.
public static int RangeIntField(Rect rect, string label, int value, int min, int max)
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.

System.Int32 min

Minimum value.

System.Int32 max

Maximum value.

Returns
System.Int32

Value assigned to the field.

RangeIntField(Rect, GUIContent, Int32, Int32, Int32)
Draws a range field for ints.
public static int RangeIntField(Rect rect, GUIContent label, int value, int min, int max)
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.

System.Int32 min

Minimum value.

System.Int32 max

Maximum value.

Returns
System.Int32

Value assigned to the field.

RangeIntField(Rect, GUIContent, Int32, Int32, Int32, GUIStyle)
Draws a range field for ints.
public static int RangeIntField(Rect rect, GUIContent label, int value, int min, int max, 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.

System.Int32 min

Minimum value.

System.Int32 max

Maximum value.

UnityEngine.GUIStyle style

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

Returns
System.Int32

Value assigned to the field.

RotationField(String, Quaternion, QuaternionDrawMode, GUILayoutOption[])
Draws a rotation field for a quaternion.
public static Quaternion RotationField(string label, Quaternion value, QuaternionDrawMode mode, params GUILayoutOption[] options)
Parameters
System.String label

Label of field. Set to null for no label.

UnityEngine.Quaternion value

Current value.

QuaternionDrawMode mode

Draw mode for rotation field.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Quaternion

Value assigned to the field.

RotationField(GUIContent, Quaternion, QuaternionDrawMode, GUILayoutOption[])
Draws a rotation field for a quaternion.
public static Quaternion RotationField(GUIContent label, Quaternion value, QuaternionDrawMode mode, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

Label of field. Set to null for no label.

UnityEngine.Quaternion value

Current value.

QuaternionDrawMode mode

Draw mode for rotation field.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Quaternion

Value assigned to the field.

RotationField(Quaternion, QuaternionDrawMode, GUILayoutOption[])
Draws a rotation field for a quaternion.
public static Quaternion RotationField(Quaternion value, QuaternionDrawMode mode, params GUILayoutOption[] options)
Parameters
UnityEngine.Quaternion value

Current value.

QuaternionDrawMode mode

Draw mode for rotation field.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Quaternion

Value assigned to the field.

RotationField(Rect, String, Quaternion, QuaternionDrawMode)
Draws a rotation field for a quaternion.
public static Quaternion RotationField(Rect rect, string label, Quaternion value, QuaternionDrawMode mode)
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.

QuaternionDrawMode mode

Draw mode for rotation field.

Returns
UnityEngine.Quaternion

Value assigned to the field.

RotationField(Rect, GUIContent, Quaternion, QuaternionDrawMode)
Draws a rotation field for a quaternion.
public static Quaternion RotationField(Rect rect, GUIContent label, Quaternion value, QuaternionDrawMode mode)
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.

QuaternionDrawMode mode

Draw mode for rotation field.

Returns
UnityEngine.Quaternion

Value assigned to the field.

RotationField(Rect, Quaternion, QuaternionDrawMode)
Draws a rotation field for a quaternion.
public static Quaternion RotationField(Rect rect, Quaternion value, QuaternionDrawMode mode)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.Quaternion value

Current value.

QuaternionDrawMode mode

Draw mode for rotation field.

Returns
UnityEngine.Quaternion

Value assigned to the field.

SegmentedProgressBarField(Int64, Int64, Int64, ProgressBarConfig, GUILayoutOption[])
Draws a colored segmented progress bar field.
public static long SegmentedProgressBarField(long value, long minValue, long maxValue, ProgressBarConfig config, params GUILayoutOption[] options)
Parameters
System.Int64 value

The current value of the progress bar.

System.Int64 minValue

The left hand side value of the progress bar.

System.Int64 maxValue

The right hand side value of the progress bar.

ProgressBarConfig config

The configuration for the progress bar field.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int64

SegmentedProgressBarField(Int64, Int64, Int64, GUILayoutOption[])
Draws a colored segmented progress bar field.
public static long SegmentedProgressBarField(long value, long minValue, long maxValue, params GUILayoutOption[] options)
Parameters
System.Int64 value

The current value of the progress bar.

System.Int64 minValue

The left hand side value of the progress bar.

System.Int64 maxValue

The right hand side value of the progress bar.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int64

SegmentedProgressBarField(String, Int64, Int64, Int64, ProgressBarConfig, GUILayoutOption[])
Draws a colored segmented progress bar field.
public static long SegmentedProgressBarField(string label, long value, long minValue, long maxValue, ProgressBarConfig config, params GUILayoutOption[] options)
Parameters
System.String label

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

System.Int64 value

The current value of the progress bar.

System.Int64 minValue

The left hand side value of the progress bar.

System.Int64 maxValue

The right hand side value of the progress bar.

ProgressBarConfig config

The configuration for the progress bar field.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int64

SegmentedProgressBarField(String, Int64, Int64, Int64, GUILayoutOption[])
Draws a colored segmented progress bar field.
public static long SegmentedProgressBarField(string label, long value, long minValue, long maxValue, params GUILayoutOption[] options)
Parameters
System.String label

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

System.Int64 value

The current value of the progress bar.

System.Int64 minValue

The left hand side value of the progress bar.

System.Int64 maxValue

The right hand side value of the progress bar.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int64

SegmentedProgressBarField(GUIContent, Int64, Int64, Int64, ProgressBarConfig, GUILayoutOption[])
Draws a colored segmented progress bar field.
public static long SegmentedProgressBarField(GUIContent label, long value, long minValue, long maxValue, ProgressBarConfig config, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

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

System.Int64 value

The current value of the progress bar.

System.Int64 minValue

The left hand side value of the progress bar.

System.Int64 maxValue

The right hand side value of the progress bar.

ProgressBarConfig config

The configuration for the progress bar field.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int64

SegmentedProgressBarField(GUIContent, Int64, Int64, Int64, GUILayoutOption[])
Draws a colored segmented progress bar field.
public static long SegmentedProgressBarField(GUIContent label, long value, long minValue, long maxValue, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

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

System.Int64 value

The current value of the progress bar.

System.Int64 minValue

The left hand side value of the progress bar.

System.Int64 maxValue

The right hand side value of the progress bar.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int64

SegmentedProgressBarField(Rect, Int64, Int64, Int64)
Draws a colored segmented progress bar field.
public static long SegmentedProgressBarField(Rect rect, long value, long minValue, long maxValue)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Int64 value

The current value of the progress bar.

System.Int64 minValue

The left hand side value of the progress bar.

System.Int64 maxValue

The right hand side value of the progress bar.

Returns
System.Int64

SegmentedProgressBarField(Rect, Int64, Int64, Int64, ProgressBarConfig)
Draws a colored segmented progress bar field.
public static long SegmentedProgressBarField(Rect rect, long value, long minValue, long maxValue, ProgressBarConfig config)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.Int64 value

The current value of the progress bar.

System.Int64 minValue

The left hand side value of the progress bar.

System.Int64 maxValue

The right hand side value of the progress bar.

ProgressBarConfig config

The configuration for the progress bar field.

Returns
System.Int64

SegmentedProgressBarField(Rect, String, Int64, Int64, Int64)
Draws a colored segmented progress bar field.
public static long SegmentedProgressBarField(Rect rect, string label, long value, long minValue, long maxValue)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

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

System.Int64 value

The current value of the progress bar.

System.Int64 minValue

The left hand side value of the progress bar.

System.Int64 maxValue

The right hand side value of the progress bar.

Returns
System.Int64

SegmentedProgressBarField(Rect, String, Int64, Int64, Int64, ProgressBarConfig)
Draws a colored segmented progress bar field.
public static long SegmentedProgressBarField(Rect rect, string label, long value, long minValue, long maxValue, ProgressBarConfig config)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

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

System.Int64 value

The current value of the progress bar.

System.Int64 minValue

The left hand side value of the progress bar.

System.Int64 maxValue

The right hand side value of the progress bar.

ProgressBarConfig config

The configuration for the progress bar field.

Returns
System.Int64

SegmentedProgressBarField(Rect, GUIContent, Int64, Int64, Int64)
Draws a colored segmented progress bar field.
public static long SegmentedProgressBarField(Rect rect, GUIContent label, long value, long minValue, long maxValue)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

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

System.Int64 value

The current value of the progress bar.

System.Int64 minValue

The left hand side value of the progress bar.

System.Int64 maxValue

The right hand side value of the progress bar.

Returns
System.Int64

SegmentedProgressBarField(Rect, GUIContent, Int64, Int64, Int64, ProgressBarConfig)
Draws a colored segmented progress bar field.
public static long SegmentedProgressBarField(Rect rect, GUIContent label, long value, long minValue, long maxValue, ProgressBarConfig config)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

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

System.Int64 value

The current value of the progress bar.

System.Int64 minValue

The left hand side value of the progress bar.

System.Int64 maxValue

The right hand side value of the progress bar.

ProgressBarConfig config

The configuration for the progress bar field.

Returns
System.Int64

SegmentedProgressBarField(Rect, GUIContent, Int64, Int64, Int64, ProgressBarConfig, String)
Draws a colored segmented progress bar field.
public static long SegmentedProgressBarField(Rect rect, GUIContent label, long value, long minValue, long maxValue, ProgressBarConfig config, string valueLabel)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

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

System.Int64 value

The current value of the progress bar.

System.Int64 minValue

The left hand side value of the progress bar.

System.Int64 maxValue

The right hand side value of the progress bar.

ProgressBarConfig config

The configuration for the progress bar field.

System.String valueLabel

Optional text for label to be drawn ontop of the progress bar. This value is only used if the DrawValueLabel option is enabled in the ProgressBarConfig.

Returns
System.Int64

SmartDecimalField(FieldExpressionContext, Decimal, GUILayoutOption[])
Draws a decimal field that supports Odin expressions.
public static decimal SmartDecimalField(in FieldExpressionContext expressionContext, decimal value, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

System.Decimal value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Decimal

Value assigned to the field.

SmartDecimalField(FieldExpressionContext, String, Decimal, GUILayoutOption[])
Draws a decimal field that supports Odin expressions.
public static decimal SmartDecimalField(in FieldExpressionContext expressionContext, string label, decimal value, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDecimalField(FieldExpressionContext, GUIContent, Decimal, GUILayoutOption[])
Draws a decimal field that supports Odin expressions.
public static decimal SmartDecimalField(in FieldExpressionContext expressionContext, GUIContent label, decimal value, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDecimalField(FieldExpressionContext, GUIContent, Decimal, GUIStyle, GUILayoutOption[])
Draws a decimal field that supports Odin expressions.
public static decimal SmartDecimalField(in FieldExpressionContext expressionContext, GUIContent label, decimal value, GUIStyle style, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDecimalField(FieldExpressionContext, Rect, Decimal)
Draws a decimal field that supports Odin expressions.
public static decimal SmartDecimalField(in FieldExpressionContext expressionContext, Rect rect, decimal value)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

UnityEngine.Rect rect

Position and size of the field.

System.Decimal value

Current value.

Returns
System.Decimal

Value assigned to the field.

SmartDecimalField(FieldExpressionContext, Rect, String, Decimal)
Draws a decimal field that supports Odin expressions.
public static decimal SmartDecimalField(in FieldExpressionContext expressionContext, Rect rect, string label, decimal value)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDecimalField(FieldExpressionContext, Rect, GUIContent, Decimal, GUIStyle)
Draws a decimal field that supports Odin expressions.
public static decimal SmartDecimalField(in FieldExpressionContext expressionContext, Rect rect, GUIContent label, decimal value, GUIStyle style)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDecimalUnitField(FieldExpressionContext, Decimal, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a decimal field that supports unit conversions and Odin expressions.
public static decimal SmartDecimalUnitField(in FieldExpressionContext expressionContext, decimal value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDecimalUnitField(FieldExpressionContext, String, Decimal, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a decimal field that supports unit conversions and Odin expressions.
public static decimal SmartDecimalUnitField(in FieldExpressionContext expressionContext, string label, decimal value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

System.String 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.

SmartDecimalUnitField(FieldExpressionContext, GUIContent, Decimal, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a decimal field that supports unit conversions and Odin expressions.
public static decimal SmartDecimalUnitField(in FieldExpressionContext expressionContext, GUIContent label, decimal value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDecimalUnitField(FieldExpressionContext, GUIContent, Decimal, UnitInfo, UnitInfo, GUIStyle, GUILayoutOption[])
Draws a decimal field that supports unit conversions and Odin expressions.
public static decimal SmartDecimalUnitField(in FieldExpressionContext expressionContext, GUIContent label, decimal value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, GUIStyle style, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDecimalUnitField(FieldExpressionContext, Rect, Decimal, UnitInfo, UnitInfo)
Draws a decimal field that supports unit conversions and Odin expressions.
public static decimal SmartDecimalUnitField(in FieldExpressionContext expressionContext, Rect rect, decimal value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDecimalUnitField(FieldExpressionContext, Rect, String, Decimal, UnitInfo, UnitInfo)
Draws a decimal field that supports unit conversions and Odin expressions.
public static decimal SmartDecimalUnitField(in FieldExpressionContext expressionContext, Rect rect, string label, decimal value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDecimalUnitField(FieldExpressionContext, Rect, GUIContent, Decimal, UnitInfo, UnitInfo)
Draws a decimal field that supports unit conversions and Odin expressions.
public static decimal SmartDecimalUnitField(in FieldExpressionContext expressionContext, Rect rect, GUIContent label, decimal value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDecimalUnitField(FieldExpressionContext, Rect, GUIContent, Decimal, UnitInfo, UnitInfo, GUIStyle)
Draws a decimal field that supports unit conversions and Odin expressions.
public static decimal SmartDecimalUnitField(in FieldExpressionContext expressionContext, Rect rect, GUIContent label, decimal value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, GUIStyle style)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDoubleField(FieldExpressionContext, Double, GUILayoutOption[])
Draws a double field that supports Odin expressions.
public static double SmartDoubleField(in FieldExpressionContext expressionContext, double value, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

System.Double value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

Value assigned to the field.

SmartDoubleField(FieldExpressionContext, String, Double, GUILayoutOption[])
Draws a double field that supports Odin expressions.
public static double SmartDoubleField(in FieldExpressionContext expressionContext, string label, double value, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDoubleField(FieldExpressionContext, GUIContent, Double, GUILayoutOption[])
Draws a double field that supports Odin expressions.
public static double SmartDoubleField(in FieldExpressionContext expressionContext, GUIContent label, double value, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDoubleField(FieldExpressionContext, GUIContent, Double, GUIStyle, GUILayoutOption[])
Draws a double field that supports Odin expressions.
public static double SmartDoubleField(in FieldExpressionContext expressionContext, GUIContent label, double value, GUIStyle style, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Double value

Current value.

UnityEngine.GUIStyle style

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Double

Value assigned to the field.

SmartDoubleField(FieldExpressionContext, Rect, Double)
Draws a double field that supports Odin expressions.
public static double SmartDoubleField(in FieldExpressionContext expressionContext, Rect rect, double value)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

UnityEngine.Rect rect

System.Double value

Current value.

Returns
System.Double

Value assigned to the field.

SmartDoubleField(FieldExpressionContext, Rect, String, Double)
Draws a double field that supports Odin expressions.
public static double SmartDoubleField(in FieldExpressionContext expressionContext, Rect rect, string label, double value)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDoubleField(FieldExpressionContext, Rect, GUIContent, Double, GUIStyle)
Draws a double field that supports Odin expressions.
public static double SmartDoubleField(in FieldExpressionContext expressionContext, Rect rect, GUIContent label, double value, GUIStyle style)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDoubleUnitField(FieldExpressionContext, Double, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a double field that supports unit conversions and Odin expressions.
public static double SmartDoubleUnitField(in FieldExpressionContext expressionContext, double value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDoubleUnitField(FieldExpressionContext, String, Double, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a double field that supports unit conversions and Odin expressions.
public static double SmartDoubleUnitField(in FieldExpressionContext expressionContext, string label, double value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

System.String 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.

SmartDoubleUnitField(FieldExpressionContext, GUIContent, Double, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a double field that supports unit conversions and Odin expressions.
public static double SmartDoubleUnitField(in FieldExpressionContext expressionContext, GUIContent label, double value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDoubleUnitField(FieldExpressionContext, GUIContent, Double, UnitInfo, UnitInfo, GUIStyle, GUILayoutOption[])
Draws a double field that supports unit conversions and Odin expressions.
public static double SmartDoubleUnitField(in FieldExpressionContext expressionContext, GUIContent label, double value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, GUIStyle style, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDoubleUnitField(FieldExpressionContext, Rect, Double, UnitInfo, UnitInfo)
Draws a double field that supports unit conversions and Odin expressions.
public static double SmartDoubleUnitField(in FieldExpressionContext expressionContext, Rect rect, double value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDoubleUnitField(FieldExpressionContext, Rect, String, Double, UnitInfo, UnitInfo)
Draws a double field that supports unit conversions and Odin expressions.
public static double SmartDoubleUnitField(in FieldExpressionContext expressionContext, Rect rect, string label, double value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDoubleUnitField(FieldExpressionContext, Rect, GUIContent, Double, UnitInfo, UnitInfo)
Draws a double field that supports unit conversions and Odin expressions.
public static double SmartDoubleUnitField(in FieldExpressionContext expressionContext, Rect rect, GUIContent label, double value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartDoubleUnitField(FieldExpressionContext, Rect, GUIContent, Double, UnitInfo, UnitInfo, GUIStyle)
Draws a double field that supports unit conversions and Odin expressions.
public static double SmartDoubleUnitField(in FieldExpressionContext expressionContext, Rect rect, GUIContent label, double value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, GUIStyle style)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartFloatField(FieldExpressionContext, Single, GUILayoutOption[])
Draws a float field that supports Odin expressions.
public static float SmartFloatField(in FieldExpressionContext expressionContext, float value, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

System.Single value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Single

Value assigned to the field.

SmartFloatField(FieldExpressionContext, String, Single, GUILayoutOption[])
Draws a float field that supports Odin expressions.
public static float SmartFloatField(in FieldExpressionContext expressionContext, string label, float value, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartFloatField(FieldExpressionContext, GUIContent, Single, GUILayoutOption[])
Draws a float field that supports Odin expressions.
public static float SmartFloatField(in FieldExpressionContext expressionContext, GUIContent label, float value, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartFloatField(FieldExpressionContext, GUIContent, Single, GUIStyle, GUILayoutOption[])
Draws a float field that supports Odin expressions.
public static float SmartFloatField(in FieldExpressionContext expressionContext, GUIContent label, float value, GUIStyle style, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Single value

Current value.

UnityEngine.GUIStyle style

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Single

Value assigned to the field.

SmartFloatField(FieldExpressionContext, Rect, Single)
Draws a float field that supports Odin expressions.
public static float SmartFloatField(in FieldExpressionContext expressionContext, Rect rect, float value)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

UnityEngine.Rect rect

System.Single value

Current value.

Returns
System.Single

Value assigned to the field.

SmartFloatField(FieldExpressionContext, Rect, String, Single)
Draws a float field that supports Odin expressions.
public static float SmartFloatField(in FieldExpressionContext expressionContext, Rect rect, string label, float value)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartFloatField(FieldExpressionContext, Rect, GUIContent, Single, GUIStyle)
Draws a float field that supports Odin expressions.
public static float SmartFloatField(in FieldExpressionContext expressionContext, Rect rect, GUIContent label, float value, GUIStyle style)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartFloatUnitField(FieldExpressionContext, Single, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a float field that supports unit conversions and Odin expressions.
public static float SmartFloatUnitField(in FieldExpressionContext expressionContext, float value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartFloatUnitField(FieldExpressionContext, String, Single, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a float field that supports unit conversions and Odin expressions.
public static float SmartFloatUnitField(in FieldExpressionContext expressionContext, string label, float value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

System.String 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.

SmartFloatUnitField(FieldExpressionContext, GUIContent, Single, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a float field that supports unit conversions and Odin expressions.
public static float SmartFloatUnitField(in FieldExpressionContext expressionContext, GUIContent label, float value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartFloatUnitField(FieldExpressionContext, GUIContent, Single, UnitInfo, UnitInfo, GUIStyle, GUILayoutOption[])
Draws a float field that supports unit conversions and Odin expressions.
public static float SmartFloatUnitField(in FieldExpressionContext expressionContext, GUIContent label, float value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, GUIStyle style, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartFloatUnitField(FieldExpressionContext, Rect, Single, UnitInfo, UnitInfo)
Draws a float field that supports unit conversions and Odin expressions.
public static float SmartFloatUnitField(in FieldExpressionContext expressionContext, Rect rect, float value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartFloatUnitField(FieldExpressionContext, Rect, String, Single, UnitInfo, UnitInfo)
Draws a float field that supports unit conversions and Odin expressions.
public static float SmartFloatUnitField(in FieldExpressionContext expressionContext, Rect rect, string label, float value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartFloatUnitField(FieldExpressionContext, Rect, GUIContent, Single, UnitInfo, UnitInfo)
Draws a float field that supports unit conversions and Odin expressions.
public static float SmartFloatUnitField(in FieldExpressionContext expressionContext, Rect rect, GUIContent label, float value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartFloatUnitField(FieldExpressionContext, Rect, GUIContent, Single, UnitInfo, UnitInfo, GUIStyle)
Draws a float field that supports unit conversions and Odin expressions.
public static float SmartFloatUnitField(in FieldExpressionContext expressionContext, Rect rect, GUIContent label, float value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, GUIStyle style)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartIntField(FieldExpressionContext, Int32, GUILayoutOption[])
Draws a int field that supports Odin expressions.
public static int SmartIntField(in FieldExpressionContext expressionContext, int value, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

System.Int32 value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

SmartIntField(FieldExpressionContext, String, Int32, GUILayoutOption[])
Draws a int field that supports Odin expressions.
public static int SmartIntField(in FieldExpressionContext expressionContext, string label, int value, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartIntField(FieldExpressionContext, GUIContent, Int32, GUILayoutOption[])
Draws a int field that supports Odin expressions.
public static int SmartIntField(in FieldExpressionContext expressionContext, GUIContent label, int value, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartIntField(FieldExpressionContext, GUIContent, Int32, GUIStyle, GUILayoutOption[])
Draws a int field that supports Odin expressions.
public static int SmartIntField(in FieldExpressionContext expressionContext, GUIContent label, int value, GUIStyle style, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int32 value

Current value.

UnityEngine.GUIStyle style

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int32

Value assigned to the field.

SmartIntField(FieldExpressionContext, Rect, Int32)
Draws a int field that supports Odin expressions.
public static int SmartIntField(in FieldExpressionContext expressionContext, Rect rect, int value)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

UnityEngine.Rect rect

System.Int32 value

Current value.

Returns
System.Int32

Value assigned to the field.

SmartIntField(FieldExpressionContext, Rect, String, Int32)
Draws a int field that supports Odin expressions.
public static int SmartIntField(in FieldExpressionContext expressionContext, Rect rect, string label, int value)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartIntField(FieldExpressionContext, Rect, GUIContent, Int32, GUIStyle)
Draws a int field that supports Odin expressions.
public static int SmartIntField(in FieldExpressionContext expressionContext, Rect rect, GUIContent label, int value, GUIStyle style)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartIntUnitField(FieldExpressionContext, Int32, UnitInfo, UnitInfo, GUILayoutOption[])
public static int SmartIntUnitField(in FieldExpressionContext expressionContext, int value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

System.Int32 value

UnitInfo baseUnitInfo

UnitInfo displayUnitInfo

UnityEngine.GUILayoutOption[] options

Returns
System.Int32

SmartIntUnitField(FieldExpressionContext, String, Int32, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a int field that supports unit conversions and Odin expressions.
public static int SmartIntUnitField(in FieldExpressionContext expressionContext, string label, int value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

System.String 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.

SmartIntUnitField(FieldExpressionContext, GUIContent, Int32, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a int field that supports unit conversions and Odin expressions.
public static int SmartIntUnitField(in FieldExpressionContext expressionContext, GUIContent label, int value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartIntUnitField(FieldExpressionContext, GUIContent, Int32, UnitInfo, UnitInfo, GUIStyle, GUILayoutOption[])
Draws a int field that supports unit conversions and Odin expressions.
public static int SmartIntUnitField(in FieldExpressionContext expressionContext, GUIContent label, int value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, GUIStyle style, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartIntUnitField(FieldExpressionContext, Rect, Int32, UnitInfo, UnitInfo)
Draws a int field that supports unit conversions and Odin expressions.
public static int SmartIntUnitField(in FieldExpressionContext expressionContext, Rect rect, int value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

UnityEngine.Rect rect

Position and size of the field.

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.

SmartIntUnitField(FieldExpressionContext, Rect, String, Int32, UnitInfo, UnitInfo)
Draws a int field that supports unit conversions and Odin expressions.
public static int SmartIntUnitField(in FieldExpressionContext expressionContext, Rect rect, string label, int value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

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.

SmartIntUnitField(FieldExpressionContext, Rect, GUIContent, Int32, UnitInfo, UnitInfo)
Draws a int field that supports unit conversions and Odin expressions.
public static int SmartIntUnitField(in FieldExpressionContext expressionContext, Rect rect, GUIContent label, int value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartIntUnitField(FieldExpressionContext, Rect, GUIContent, Int32, UnitInfo, UnitInfo, GUIStyle)
Draws a int field that supports unit conversions and Odin expressions.
public static int SmartIntUnitField(in FieldExpressionContext expressionContext, Rect rect, GUIContent label, int value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, GUIStyle style)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartLongField(FieldExpressionContext, Int64, GUILayoutOption[])
Draws a long field that supports Odin expressions.
public static long SmartLongField(in FieldExpressionContext expressionContext, long value, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

System.Int64 value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int64

Value assigned to the field.

SmartLongField(FieldExpressionContext, String, Int64, GUILayoutOption[])
Draws a long field that supports Odin expressions.
public static long SmartLongField(in FieldExpressionContext expressionContext, string label, long value, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartLongField(FieldExpressionContext, GUIContent, Int64, GUILayoutOption[])
Draws a long field that supports Odin expressions.
public static long SmartLongField(in FieldExpressionContext expressionContext, GUIContent label, long value, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartLongField(FieldExpressionContext, GUIContent, Int64, GUIStyle, GUILayoutOption[])
Draws a long field that supports Odin expressions.
public static long SmartLongField(in FieldExpressionContext expressionContext, GUIContent label, long value, GUIStyle style, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int64 value

Current value.

UnityEngine.GUIStyle style

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.Int64

Value assigned to the field.

SmartLongField(FieldExpressionContext, Rect, Int64)
Draws a long field that supports Odin expressions.
public static long SmartLongField(in FieldExpressionContext expressionContext, Rect rect, long value)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

UnityEngine.Rect rect

System.Int64 value

Current value.

Returns
System.Int64

Value assigned to the field.

SmartLongField(FieldExpressionContext, Rect, String, Int64)
Draws a long field that supports Odin expressions.
public static long SmartLongField(in FieldExpressionContext expressionContext, Rect rect, string label, long value)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartLongField(FieldExpressionContext, Rect, GUIContent, Int64, GUIStyle)
Draws a long field that supports Odin expressions.
public static long SmartLongField(in FieldExpressionContext expressionContext, Rect rect, GUIContent label, long value, GUIStyle style)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

SmartLongUnitField(FieldExpressionContext, Int64, UnitInfo, UnitInfo, GUILayoutOption[])
public static long SmartLongUnitField(in FieldExpressionContext expressionContext, long value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

System.Int64 value

UnitInfo baseUnitInfo

UnitInfo displayUnitInfo

UnityEngine.GUILayoutOption[] options

Returns
System.Int64

SmartLongUnitField(FieldExpressionContext, String, Int64, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a long field that supports unit conversions and Odin expressions.
public static long SmartLongUnitField(in FieldExpressionContext expressionContext, string label, long value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

System.String label

Label of field. Set to null for no label.

System.Int64 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.Int64

Value assigned to the field.

SmartLongUnitField(FieldExpressionContext, GUIContent, Int64, UnitInfo, UnitInfo, GUILayoutOption[])
Draws a long field that supports unit conversions and Odin expressions.
public static long SmartLongUnitField(in FieldExpressionContext expressionContext, GUIContent label, long value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int64 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.Int64

Value assigned to the field.

SmartLongUnitField(FieldExpressionContext, GUIContent, Int64, UnitInfo, UnitInfo, GUIStyle, GUILayoutOption[])
Draws a long field that supports unit conversions and Odin expressions.
public static long SmartLongUnitField(in FieldExpressionContext expressionContext, GUIContent label, long value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, GUIStyle style, params GUILayoutOption[] options)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

System.Int64 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.Int64

Value assigned to the field.

SmartLongUnitField(FieldExpressionContext, Rect, Int64, UnitInfo, UnitInfo)
Draws a long field that supports unit conversions and Odin expressions.
public static long SmartLongUnitField(in FieldExpressionContext expressionContext, Rect rect, long value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

UnityEngine.Rect rect

Position and size of the field.

System.Int64 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.Int64

Value assigned to the field.

SmartLongUnitField(FieldExpressionContext, Rect, String, Int64, UnitInfo, UnitInfo)
Draws a long field that supports unit conversions and Odin expressions.
public static long SmartLongUnitField(in FieldExpressionContext expressionContext, Rect rect, string label, long value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

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.Int64

Value assigned to the field.

SmartLongUnitField(FieldExpressionContext, Rect, GUIContent, Int64, UnitInfo, UnitInfo)
Draws a long field that supports unit conversions and Odin expressions.
public static long SmartLongUnitField(in FieldExpressionContext expressionContext, Rect rect, GUIContent label, long value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

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.Int64

Value assigned to the field.

SmartLongUnitField(FieldExpressionContext, Rect, GUIContent, Int64, UnitInfo, UnitInfo, GUIStyle)
Draws a long field that supports unit conversions and Odin expressions.
public static long SmartLongUnitField(in FieldExpressionContext expressionContext, Rect rect, GUIContent label, long value, UnitInfo baseUnitInfo, UnitInfo displayUnitInfo, GUIStyle style)
Parameters
FieldExpressionContext expressionContext

Context for expression support.

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.

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.Int64

Value assigned to the field.

TextField(String, String, GUILayoutOption[])
Draws a text field for strings.
public static string TextField(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.

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

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
System.String

Value assigned to the field.

TextField(GUIContent, String, GUILayoutOption[])
Draws a text field for strings.
public static string TextField(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.

TextField(GUIContent, String, GUIStyle, GUILayoutOption[])
Draws a text field for strings.
public static string TextField(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.

TextField(Rect, String)
Draws a text field for strings.
public static string TextField(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.

TextField(Rect, String, String)
Draws a text field for strings.
public static string TextField(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.

TextField(Rect, GUIContent, String)
Draws a text field for strings.
public static string TextField(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.

TextField(Rect, GUIContent, String, GUIStyle)
Draws a text field for strings.
public static string TextField(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.

UnityObjectField(String, Object, Type, Boolean, GUILayoutOption[])
Draws a regular Unity ObjectField, but supports labels being nulls, and also adds a small button that will open the object in a new inspector window.
public static Object UnityObjectField(string label, Object value, Type objectType, bool allowSceneObjects, params GUILayoutOption[] options)
Parameters
System.String label

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

UnityEngine.Object value

The Unity object.

System.Type objectType

The Unity object type. This supports inheritance.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Object

UnityObjectField(GUIContent, Object, Type, Boolean, GUILayoutOption[])
Draws a regular Unity ObjectField, but supports labels being nulls, and also adds a small button that will open the object in a new inspector window.
public static Object UnityObjectField(GUIContent label, Object value, Type objectType, bool allowSceneObjects, params GUILayoutOption[] options)
Parameters
UnityEngine.GUIContent label

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

UnityEngine.Object value

The Unity object.

System.Type objectType

The Unity object type. This supports inheritance.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Object

UnityObjectField(Object, Type, Boolean, GUILayoutOption[])
Draws a regular Unity ObjectField, but supports labels being nulls, and also adds a small button that will open the object in a new inspector window.
public static Object UnityObjectField(Object value, Type objectType, bool allowSceneObjects, params GUILayoutOption[] options)
Parameters
UnityEngine.Object value

The Unity object.

System.Type objectType

The Unity object type. This supports inheritance.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Object

UnityObjectField(Rect, String, Object, Type, Boolean)
Draws a regular Unity ObjectField, but supports labels being nulls, and also adds a small button that will open the object in a new inspector window.
public static Object UnityObjectField(Rect rect, string label, Object value, Type objectType, bool allowSceneObjects)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

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

UnityEngine.Object value

The Unity object.

System.Type objectType

The Unity object type. This supports inheritance.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

Returns
UnityEngine.Object

UnityObjectField(Rect, GUIContent, Object, Type, Boolean)
Draws a regular Unity ObjectField, but supports labels being nulls, and also adds a small button that will open the object in a new inspector window.
public static Object UnityObjectField(Rect rect, GUIContent label, Object value, Type objectType, bool allowSceneObjects)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

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

UnityEngine.Object value

The Unity object.

System.Type objectType

The Unity object type. This supports inheritance.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

Returns
UnityEngine.Object

UnityObjectField(Rect, Object, Type, Boolean)
Draws a regular Unity ObjectField, but supports labels being nulls, and also adds a small button that will open the object in a new inspector window.
public static Object UnityObjectField(Rect rect, Object value, Type objectType, bool allowSceneObjects)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.Object value

The Unity object.

System.Type objectType

The Unity object type. This supports inheritance.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

Returns
UnityEngine.Object

UnityPreviewObjectField(String, Object, Type, Boolean, Single, ObjectFieldAlignment)
Draws a square ObjectField which renders a preview for UnityEngine.Object types. This object field also adds support for drag and drop, dragging an object to another square object field, swaps the values. If you hold down control while letting go it will replace the value, And you can control + click the object field to quickly delete the value it holds.
public static Object UnityPreviewObjectField(string label, Object value, Type objectType, bool allowSceneObjects, float height = 30F, ObjectFieldAlignment alignment = ObjectFieldAlignment.Right)
Parameters
System.String label

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

UnityEngine.Object value

The Unity object.

System.Type objectType

The Unity object type. This supports inheritance.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

System.Single height

The height or size of the square object field.

ObjectFieldAlignment alignment

How the square object field should be aligned.

Returns
UnityEngine.Object

UnityPreviewObjectField(GUIContent, Object, Type, Boolean, Single, ObjectFieldAlignment)
Draws a square ObjectField which renders a preview for UnityEngine.Object types. This object field also adds support for drag and drop, dragging an object to another square object field, swaps the values. If you hold down control while letting go it will replace the value, And you can control + click the object field to quickly delete the value it holds.
public static Object UnityPreviewObjectField(GUIContent label, Object value, Type objectType, bool allowSceneObjects, float height = 30F, ObjectFieldAlignment alignment = ObjectFieldAlignment.Right)
Parameters
UnityEngine.GUIContent label

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

UnityEngine.Object value

The Unity object.

System.Type objectType

The Unity object type. This supports inheritance.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

System.Single height

The height or size of the square object field.

ObjectFieldAlignment alignment

How the square object field should be aligned.

Returns
UnityEngine.Object

UnityPreviewObjectField(GUIContent, Object, Texture, Type, Boolean, Single, ObjectFieldAlignment)
Draws a square ObjectField which renders a preview for UnityEngine.Object types. This object field also adds support for drag and drop, dragging an object to another square object field, swaps the values. If you hold down control while letting go it will replace the value, And you can control + click the object field to quickly delete the value it holds.
public static Object UnityPreviewObjectField(GUIContent label, Object value, Texture preview, Type objectType, bool allowSceneObjects, float height = 30F, ObjectFieldAlignment alignment = ObjectFieldAlignment.Right)
Parameters
UnityEngine.GUIContent label

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

UnityEngine.Object value

The Unity object.

UnityEngine.Texture preview

The texture to be used as the preview.

System.Type objectType

The Unity object type. This supports inheritance.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

System.Single height

The height or size of the square object field.

ObjectFieldAlignment alignment

How the square object field should be aligned.

Returns
UnityEngine.Object

UnityPreviewObjectField(Object, Type, Boolean, Single, ObjectFieldAlignment)
Draws a square ObjectField which renders a preview for UnityEngine.Object types. This object field also adds support for drag and drop, dragging an object to another square object field, swaps the values. If you hold down control while letting go it will replace the value, And you can control + click the object field to quickly delete the value it holds.
public static Object UnityPreviewObjectField(Object value, Type objectType, bool allowSceneObjects, float height = 30F, ObjectFieldAlignment alignment = ObjectFieldAlignment.Right)
Parameters
UnityEngine.Object value

The Unity object.

System.Type objectType

The Unity object type. This supports inheritance.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

System.Single height

The height or size of the square object field.

ObjectFieldAlignment alignment

How the square object field should be aligned.

Returns
UnityEngine.Object

UnityPreviewObjectField(Rect, String, Object, Type, Boolean, ObjectFieldAlignment)
Draws a square ObjectField which renders a preview for UnityEngine.Object types. This object field also adds support for drag and drop, dragging an object to another square object field, swaps the values. If you hold down control while letting go it will replace the value, And you can control + click the object field to quickly delete the value it holds.
public static Object UnityPreviewObjectField(Rect rect, string label, Object value, Type objectType, bool allowSceneObjects, ObjectFieldAlignment alignment = ObjectFieldAlignment.Right)
Parameters
UnityEngine.Rect rect

Position and size of the field.

System.String label

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

UnityEngine.Object value

The Unity object.

System.Type objectType

The Unity object type. This supports inheritance.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

ObjectFieldAlignment alignment

How the square object field should be aligned.

Returns
UnityEngine.Object

UnityPreviewObjectField(Rect, GUIContent, Object, Type, ObjectFieldAlignment, Boolean, Boolean, Boolean, Boolean)
Draws a square ObjectField which renders a preview for UnityEngine.Object types. This object field also adds support for drag and drop, dragging an object to another square object field, swaps the values. If you hold down control while letting go it will replace the value, And you can control + click the object field to quickly delete the value it holds.
public static Object UnityPreviewObjectField(Rect rect, GUIContent label, Object value, Type type, ObjectFieldAlignment alignment, bool dragOnly = false, bool allowMove = true, bool allowSwap = true, bool allowSceneObjects = true)
Parameters
UnityEngine.Rect rect

UnityEngine.GUIContent label

UnityEngine.Object value

System.Type type

ObjectFieldAlignment alignment

System.Boolean dragOnly

System.Boolean allowMove

System.Boolean allowSwap

System.Boolean allowSceneObjects

Returns
UnityEngine.Object

UnityPreviewObjectField(Rect, GUIContent, Object, Type, Boolean, ObjectFieldAlignment)
Draws a square ObjectField which renders a preview for UnityEngine.Object types. This object field also adds support for drag and drop, dragging an object to another square object field, swaps the values. If you hold down control while letting go it will replace the value, And you can control + click the object field to quickly delete the value it holds.
public static Object UnityPreviewObjectField(Rect rect, GUIContent label, Object value, Type objectType, bool allowSceneObjects, ObjectFieldAlignment alignment = ObjectFieldAlignment.Right)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

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

UnityEngine.Object value

The Unity object.

System.Type objectType

The Unity object type. This supports inheritance.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

ObjectFieldAlignment alignment

How the square object field should be aligned.

Returns
UnityEngine.Object

UnityPreviewObjectField(Rect, GUIContent, Object, Texture, Type, ObjectFieldAlignment, Boolean, Boolean, Boolean, Boolean)
Draws a square ObjectField which renders a preview for UnityEngine.Object types. This object field also adds support for drag and drop, dragging an object to another square object field, swaps the values. If you hold down control while letting go it will replace the value, And you can control + click the object field to quickly delete the value it holds.
public static Object UnityPreviewObjectField(Rect rect, GUIContent label, Object value, Texture preview, Type type, ObjectFieldAlignment alignment, bool dragOnly = false, bool allowMove = true, bool allowSwap = true, bool allowSceneObjects = true)
Parameters
UnityEngine.Rect rect

UnityEngine.GUIContent label

UnityEngine.Object value

UnityEngine.Texture preview

System.Type type

ObjectFieldAlignment alignment

System.Boolean dragOnly

System.Boolean allowMove

System.Boolean allowSwap

System.Boolean allowSceneObjects

Returns
UnityEngine.Object

UnityPreviewObjectField(Rect, GUIContent, Object, Texture, Type, Boolean, ObjectFieldAlignment)
Draws a square ObjectField which renders a preview for UnityEngine.Object types. This object field also adds support for drag and drop, dragging an object to another square object field, swaps the values. If you hold down control while letting go it will replace the value, And you can control + click the object field to quickly delete the value it holds.
public static Object UnityPreviewObjectField(Rect rect, GUIContent label, Object value, Texture preview, Type objectType, bool allowSceneObjects, ObjectFieldAlignment alignment = ObjectFieldAlignment.Right)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.GUIContent label

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

UnityEngine.Object value

The Unity object.

UnityEngine.Texture preview

The Texture to be used as the preview.

System.Type objectType

The Unity object type. This supports inheritance.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

ObjectFieldAlignment alignment

How the square object field should be aligned.

Returns
UnityEngine.Object

UnityPreviewObjectField(Rect, Object, Type, Boolean, ObjectFieldAlignment)
Draws a square ObjectField which renders a preview for UnityEngine.Object types. This object field also adds support for drag and drop, dragging an object to another square object field, swaps the values. If you hold down control while letting go it will replace the value, And you can control + click the object field to quickly delete the value it holds.
public static Object UnityPreviewObjectField(Rect rect, Object value, Type objectType, bool allowSceneObjects, ObjectFieldAlignment alignment = ObjectFieldAlignment.Right)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.Object value

The Unity object.

System.Type objectType

The Unity object type. This supports inheritance.

System.Boolean allowSceneObjects

Wheather or not to allow scene objects.

ObjectFieldAlignment alignment

How the square object field should be aligned.

Returns
UnityEngine.Object

UnityPreviewObjectField(Rect, Object, Type, Boolean, Boolean, Boolean, Boolean)
Draws a square ObjectField which renders a preview for UnityEngine.Object types. This object field also adds support for drag and drop, dragging an object to another square object field, swaps the values. If you hold down control while letting go it will replace the value, And you can control + click the object field to quickly delete the value it holds.
public static Object UnityPreviewObjectField(Rect rect, Object value, Type type, bool dragOnly = false, bool allowMove = true, bool allowSwap = true, bool allowSceneObjects = true)
Parameters
UnityEngine.Rect rect

UnityEngine.Object value

System.Type type

System.Boolean dragOnly

System.Boolean allowMove

System.Boolean allowSwap

System.Boolean allowSceneObjects

Returns
UnityEngine.Object

UnityPreviewObjectField(Rect, Object, Texture, Type, Boolean, Boolean, Boolean, Boolean)
Draws a square ObjectField which renders a preview for UnityEngine.Object types. This object field also adds support for drag and drop, dragging an object to another square object field, swaps the values. If you hold down control while letting go it will replace the value, And you can control + click the object field to quickly delete the value it holds.
public static Object UnityPreviewObjectField(Rect rect, Object value, Texture texture, Type type, bool dragOnly = false, bool allowMove = true, bool allowSwap = true, bool allowSceneObjects = true)
Parameters
UnityEngine.Rect rect

UnityEngine.Object value

UnityEngine.Texture texture

System.Type type

System.Boolean dragOnly

System.Boolean allowMove

System.Boolean allowSwap

System.Boolean allowSceneObjects

Returns
UnityEngine.Object

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

Label of field. Set to null for no label.

UnityEngine.Vector2 value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Vector2

Value assigned to the field.

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

Label of field. Set to null for no label.

UnityEngine.Vector2 value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Vector2

Value assigned to the field.

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

Position and size of the field.

System.String label

Label of field. Set to null for no label.

UnityEngine.Vector2 value

Current value.

Returns
UnityEngine.Vector2

Value assigned to the field.

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

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

UnityEngine.Vector2 value

Current value.

Returns
UnityEngine.Vector2

Value assigned to the field.

Vector2Field(Rect, Vector2)
Draws a Vector2 field.
public static Vector2 Vector2Field(Rect rect, Vector2 value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.Vector2 value

Current value.

Returns
UnityEngine.Vector2

Value assigned to the field.

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

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Vector2

Value assigned to the field.

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

Label of field. Set to null for no label.

UnityEngine.Vector3 value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Vector3

Value assigned to the field.

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

Label of field. Set to null for no label.

UnityEngine.Vector3 value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Vector3

Value assigned to the field.

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

Position and size of the field.

System.String label

Label of field. Set to null for no label.

UnityEngine.Vector3 value

Current value.

Returns
UnityEngine.Vector3

Value assigned to the field.

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

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

UnityEngine.Vector3 value

Current value.

Returns
UnityEngine.Vector3

Value assigned to the field.

Vector3Field(Rect, Vector3)
Draws a Vector3 field.
public static Vector3 Vector3Field(Rect rect, Vector3 value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.Vector3 value

Current value.

Returns
UnityEngine.Vector3

Value assigned to the field.

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

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Vector3

Value assigned to the field.

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

Label of field. Set to null for no label.

UnityEngine.Vector4 value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Vector4

Value assigned to the field.

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

Label of field. Set to null for no label.

UnityEngine.Vector4 value

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Vector4

Value assigned to the field.

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

Position and size of the field.

System.String label

Label of field. Set to null for no label.

UnityEngine.Vector4 value

Current value.

Returns
UnityEngine.Vector4

Value assigned to the field.

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

Position and size of the field.

UnityEngine.GUIContent label

Label of field. Set to null for no label.

UnityEngine.Vector4 value

Current value.

Returns
UnityEngine.Vector4

Value assigned to the field.

Vector4Field(Rect, Vector4)
Draws a Vector4 field.
public static Vector4 Vector4Field(Rect rect, Vector4 value)
Parameters
UnityEngine.Rect rect

Position and size of the field.

UnityEngine.Vector4 value

Current value.

Returns
UnityEngine.Vector4

Value assigned to the field.

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

Current value.

UnityEngine.GUILayoutOption[] options

Layout options.

Returns
UnityEngine.Vector4

Value assigned to the field.

VectorPrefixLabel(String, Vector4)
Draws a prefix label for a vector field, that implements label dragging.
public static Vector4 VectorPrefixLabel(string label, Vector4 value)
Parameters
System.String label

The label content. If null this function does nothing.

UnityEngine.Vector4 value

The value for the vector field.

Returns
UnityEngine.Vector4

The vector scaled by label dragging.

VectorPrefixLabel(GUIContent, Vector4)
Draws a prefix label for a vector field, that implements label dragging.
public static Vector4 VectorPrefixLabel(GUIContent label, Vector4 value)
Parameters
UnityEngine.GUIContent label

The label content. If null this function does nothing.

UnityEngine.Vector4 value

The value for the vector field.

Returns
UnityEngine.Vector4

The vector scaled by label dragging.

VectorPrefixLabel(ref Rect, String, Vector4)
Draws a prefix label for a vector field, that implements label dragging.
public static Vector4 VectorPrefixLabel(ref Rect totalRect, string label, Vector4 value)
Parameters
UnityEngine.Rect totalRect

The position and total size of the field.

System.String label

The label content. If null this function does nothing.

UnityEngine.Vector4 value

The value for the vector field.

Returns
UnityEngine.Vector4

The vector scaled by label dragging.

VectorPrefixLabel(ref Rect, GUIContent, Vector4)
Draws a prefix label for a vector field, that implements label dragging.
public static Vector4 VectorPrefixLabel(ref Rect totalRect, GUIContent label, Vector4 value)
Parameters
UnityEngine.Rect totalRect

The position and total size of the field.

UnityEngine.GUIContent label

The label content. If null this function does nothing.

UnityEngine.Vector4 value

The value for the vector field.

Returns
UnityEngine.Vector4

The vector scaled by label dragging.

VectorPrefixSlideRect(Rect, Vector4)
Draws a prefix label for a vector field, that implements label dragging.
public static Vector4 VectorPrefixSlideRect(Rect rect, Vector4 value)
Parameters
UnityEngine.Rect rect

UnityEngine.Vector4 value

Returns
UnityEngine.Vector4