Version 3.2.0.0

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

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.

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.

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, 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, 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)
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)
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.

Returns
System.String

A path to a file.

FilePathField(Rect, GUIContent, String, String, String, 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)
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.

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.

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.

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.

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(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(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, 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.