Namespace: | Sirenix.Utilities.Editor |
Assembly: | Sirenix.Utilities.Editor |
public static class SirenixEditorFields
public static readonly int SingleLetterStructLabelWidth
true
the component labels, for vector fields, will be hidden when the field is too narrow.
public static bool ResponsiveVectorComponentFields { get; set; }
public static Quaternion AngleAxisField(string label, Quaternion value, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
UnityEngine.Quaternion | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
UnityEngine.Quaternion | Value assigned to the field. |
public static Quaternion AngleAxisField(GUIContent label, Quaternion value, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
UnityEngine.Quaternion | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
UnityEngine.Quaternion | Value assigned to the field. |
public static Quaternion AngleAxisField(Quaternion value, params GUILayoutOption[] options)
UnityEngine.Quaternion | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
UnityEngine.Quaternion | Value assigned to the field. |
public static Quaternion AngleAxisField(Rect rect, string label, Quaternion value)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
UnityEngine.Quaternion | value | Current value. |
UnityEngine.Quaternion | Value assigned to the field. |
public static Quaternion AngleAxisField(Rect rect, GUIContent label, Quaternion value)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
UnityEngine.Quaternion | value | Current value. |
UnityEngine.Quaternion | Value assigned to the field. |
public static Quaternion AngleAxisField(Rect rect, Quaternion value)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.Quaternion | value | Current value. |
UnityEngine.Quaternion | Value assigned to the field. |
public static Color ColorField(string label, Color value, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
UnityEngine.Color | value | |
UnityEngine.GUILayoutOption[] | options | Layout options. |
UnityEngine.Color | Value assigned to the field. |
public static Color ColorField(Color value, params GUILayoutOption[] options)
UnityEngine.Color | value | |
UnityEngine.GUILayoutOption[] | options | Layout options. |
UnityEngine.Color | Value assigned to the field. |
public static Color ColorField(GUIContent label, Color value, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
UnityEngine.Color | value | |
UnityEngine.GUILayoutOption[] | options | Layout options. |
UnityEngine.Color | Value assigned to the field. |
public static Color ColorField(Rect rect, string label, Color value)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
UnityEngine.Color | value |
UnityEngine.Color | Value assigned to the field. |
public static Color ColorField(Rect rect, Color value)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.Color | value |
UnityEngine.Color | Value assigned to the field. |
public static Color ColorField(Rect rect, GUIContent label, Color value)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
UnityEngine.Color | value |
UnityEngine.Color | Value assigned to the field. |
public static decimal DecimalField(decimal value, params GUILayoutOption[] options)
System.Decimal | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Decimal | Value assigned to the field. |
public static decimal DecimalField(string label, decimal value, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
System.Decimal | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Decimal | Value assigned to the field. |
public static decimal DecimalField(GUIContent label, decimal value, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Decimal | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Decimal | Value assigned to the field. |
public static decimal DecimalField(GUIContent label, decimal value, GUIStyle style, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Decimal | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Decimal | Value assigned to the field. |
public static decimal DecimalField(Rect rect, decimal value)
UnityEngine.Rect | rect | Position and size of the field. |
System.Decimal | value | Current value. |
System.Decimal | Value assigned to the field. |
public static decimal DecimalField(Rect rect, string label, decimal value)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
System.Decimal | value | Current value. |
System.Decimal | Value assigned to the field. |
public static decimal DecimalField(Rect rect, GUIContent label, decimal value)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Decimal | value | Current value. |
System.Decimal | Value assigned to the field. |
public static decimal DecimalField(Rect rect, GUIContent label, decimal value, GUIStyle style)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Decimal | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
System.Decimal | Value assigned to the field. |
public static double DelayedDoubleField(double value, params GUILayoutOption[] options)
System.Double | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Double | Value assigned to the field. |
public static double DelayedDoubleField(string label, double value, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
System.Double | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Double | Value assigned to the field. |
public static double DelayedDoubleField(GUIContent label, double value, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Double | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Double | Value assigned to the field. |
public static double DelayedDoubleField(GUIContent label, double value, GUIStyle style, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Double | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Double | Value assigned to the field. |
public static double DelayedDoubleField(Rect rect, double value)
UnityEngine.Rect | rect | Position and size of the field. |
System.Double | value | Current value. |
System.Double | Value assigned to the field. |
public static double DelayedDoubleField(Rect rect, string label, double value)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
System.Double | value | Current value. |
System.Double | Value assigned to the field. |
public static double DelayedDoubleField(Rect rect, GUIContent label, double value)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Double | value | Current value. |
System.Double | Value assigned to the field. |
public static double DelayedDoubleField(Rect rect, GUIContent label, double value, GUIStyle style)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Double | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
System.Double | Value assigned to the field. |
public static float DelayedFloatField(float value, params GUILayoutOption[] options)
System.Single | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Single | Value assigned to the field. |
public static float DelayedFloatField(string label, float value, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
System.Single | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Single | Value assigned to the field. |
public static float DelayedFloatField(GUIContent label, float value, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Single | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Single | Value assigned to the field. |
public static float DelayedFloatField(GUIContent label, float value, GUIStyle style, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Single | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Single | Value assigned to the field. |
public static float DelayedFloatField(Rect rect, float value)
UnityEngine.Rect | rect | Position and size of the field. |
System.Single | value | Current value. |
System.Single | Value assigned to the field. |
public static float DelayedFloatField(Rect rect, string label, float value)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
System.Single | value | Current value. |
System.Single | Value assigned to the field. |
public static float DelayedFloatField(Rect rect, GUIContent label, float value)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Single | value | Current value. |
System.Single | Value assigned to the field. |
public static float DelayedFloatField(Rect rect, GUIContent label, float value, GUIStyle style)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Single | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
System.Single | Value assigned to the field. |
public static int DelayedIntField(int value, params GUILayoutOption[] options)
System.Int32 | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int32 | Value assigned to the field. |
public static int DelayedIntField(string label, int value, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
System.Int32 | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int32 | Value assigned to the field. |
public static int DelayedIntField(GUIContent label, int value, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int32 | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int32 | Value assigned to the field. |
public static int DelayedIntField(GUIContent label, int value, GUIStyle style, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int32 | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int32 | Value assigned to the field. |
public static int DelayedIntField(Rect rect, int value)
UnityEngine.Rect | rect | Position and size of the field. |
System.Int32 | value | Current value. |
System.Int32 | Value assigned to the field. |
public static int DelayedIntField(Rect rect, string label, int value)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
System.Int32 | value | Current value. |
System.Int32 | Value assigned to the field. |
public static int DelayedIntField(Rect rect, GUIContent label, int value)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int32 | value | Current value. |
System.Int32 | Value assigned to the field. |
public static int DelayedIntField(Rect rect, GUIContent label, int value, GUIStyle style)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int32 | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
System.Int32 | Value assigned to the field. |
public static long DelayedLongField(long value, params GUILayoutOption[] options)
System.Int64 | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int64 | Value assigned to the field. |
public static long DelayedLongField(string label, long value, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
System.Int64 | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int64 | Value assigned to the field. |
public static long DelayedLongField(GUIContent label, long value, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int64 | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int64 | Value assigned to the field. |
public static long DelayedLongField(GUIContent label, long value, GUIStyle style, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int64 | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int64 | Value assigned to the field. |
public static long DelayedLongField(Rect rect, long value)
UnityEngine.Rect | rect | Position and size of the field. |
System.Int64 | value | Current value. |
System.Int64 | Value assigned to the field. |
public static long DelayedLongField(Rect rect, string label, long value)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
System.Int64 | value | Current value. |
System.Int64 | Value assigned to the field. |
public static long DelayedLongField(Rect rect, GUIContent label, long value)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int64 | value | Current value. |
System.Int64 | Value assigned to the field. |
public static long DelayedLongField(Rect rect, GUIContent label, long value, GUIStyle style)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int64 | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
System.Int64 | Value assigned to the field. |
public static string DelayedTextField(string label, string value, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
System.String | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.String | Value assigned to the field. |
public static string DelayedTextField(string value, params GUILayoutOption[] options)
System.String | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.String | Value assigned to the field. |
public static string DelayedTextField(GUIContent label, string value, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.String | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.String | Value assigned to the field. |
public static string DelayedTextField(GUIContent label, string value, GUIStyle style, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.String | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.String | Value assigned to the field. |
public static string DelayedTextField(Rect rect, string value)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | value | Current value. |
System.String | Value assigned to the field. |
public static string DelayedTextField(Rect rect, string label, string value)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
System.String | value | Current value. |
System.String | Value assigned to the field. |
public static string DelayedTextField(Rect rect, GUIContent label, string value)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.String | value | Current value. |
System.String | Value assigned to the field. |
public static string DelayedTextField(Rect rect, GUIContent label, string value, GUIStyle style)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.String | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
System.String | Value assigned to the field. |
public static double DoubleField(double value, params GUILayoutOption[] options)
System.Double | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Double | Value assigned to the field. |
public static double DoubleField(string label, double value, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
System.Double | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Double | Value assigned to the field. |
public static double DoubleField(GUIContent label, double value, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Double | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Double | Value assigned to the field. |
public static double DoubleField(GUIContent label, double value, GUIStyle style, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Double | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Double | Value assigned to the field. |
public static double DoubleField(Rect rect, double value)
UnityEngine.Rect | rect | Position and size of the field. |
System.Double | value | Current value. |
System.Double | Value assigned to the field. |
public static double DoubleField(Rect rect, string label, double value)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
System.Double | value | Current value. |
System.Double | Value assigned to the field. |
public static double DoubleField(Rect rect, GUIContent label, double value)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Double | value | Current value. |
System.Double | Value assigned to the field. |
public static double DoubleField(Rect rect, GUIContent label, double value, GUIStyle style)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Double | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
System.Double | Value assigned to the field. |
public static int Dropdown(int selected, string[] itemNames, params GUILayoutOption[] options)
System.Int32 | selected | Current value. |
System.String[] | itemNames | Names of selectable items. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int32 | Value assigned to the field. |
public static int Dropdown(string label, int selected, string[] itemNames, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
System.Int32 | selected | Current value. |
System.String[] | itemNames | Names of selectable items. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int32 | Value assigned to the field. |
public static int Dropdown(GUIContent label, int selected, string[] itemNames, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int32 | selected | Current value. |
System.String[] | itemNames | Names of selectable items. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int32 | Value assigned to the field. |
public static int Dropdown(GUIContent label, int selected, string[] itemNames, GUIStyle style, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int32 | selected | Current value. |
System.String[] | itemNames | Names of selectable items. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int32 | Value assigned to the field. |
public static int Dropdown(Rect rect, int selected, string[] itemNames)
UnityEngine.Rect | rect | Position and size of the field. |
System.Int32 | selected | Current value. |
System.String[] | itemNames | Names of selectable items. |
System.Int32 | Value assigned to the field. |
public static int Dropdown(Rect rect, string label, int selected, string[] itemNames)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
System.Int32 | selected | Current value. |
System.String[] | itemNames | Names of selectable items. |
System.Int32 | Value assigned to the field. |
public static int Dropdown(Rect rect, GUIContent label, int selected, string[] itemNames)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int32 | selected | Current value. |
System.String[] | itemNames | Names of selectable items. |
System.Int32 | Value assigned to the field. |
public static int Dropdown(Rect rect, GUIContent label, int selected, string[] itemNames, GUIStyle style)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int32 | selected | Current value. |
System.String[] | itemNames | Names of selectable items. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
System.Int32 | Value assigned to the field. |
public static T Dropdown<T>(T selected, T[] items, string[] itemNames, params GUILayoutOption[] options)
T | selected | Current value. |
T[] | items | |
System.String[] | itemNames | Names of selectable items. If |
UnityEngine.GUILayoutOption[] | options | Layout options. |
T | Value assigned to the field. |
T |
public static bool Dropdown<T>(IList<int> selected, IList<T> items, bool multiSelection, params GUILayoutOption[] options)
System.Collections.Generic.IList<System.Int32> | selected | Current selection. |
System.Collections.Generic.IList<T> | items | Avaible items in the dropdown. |
System.Boolean | multiSelection | If |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Boolean |
|
T |
public static T Dropdown<T>(string label, T selected, T[] items, string[] itemNames, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
T | selected | Current value. |
T[] | items | |
System.String[] | itemNames | Names of selectable items. If |
UnityEngine.GUILayoutOption[] | options | Layout options. |
T | Value assigned to the field. |
T |
public static bool Dropdown<T>(string label, IList<int> selected, IList<T> items, bool multiSelection, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
System.Collections.Generic.IList<System.Int32> | selected | Current selection. |
System.Collections.Generic.IList<T> | items | Avaible items in the dropdown. |
System.Boolean | multiSelection | If |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Boolean |
|
T |
public static T Dropdown<T>(GUIContent label, T selected, T[] items, string[] itemNames, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
T | selected | Current value. |
T[] | items | |
System.String[] | itemNames | Names of selectable items. If |
UnityEngine.GUILayoutOption[] | options | Layout options. |
T | Value assigned to the field. |
T |
public static T Dropdown<T>(GUIContent label, T selected, T[] items, string[] itemNames, GUIStyle style, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
T | selected | Current value. |
T[] | items | |
System.String[] | itemNames | Names of selectable items. If |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
UnityEngine.GUILayoutOption[] | options | Layout options. |
T | Value assigned to the field. |
T |
public static T Dropdown<T>(GUIContent label, T selected, IList<T> items)
UnityEngine.GUIContent | label | Label of field. Set to |
T | selected | Current value. |
System.Collections.Generic.IList<T> | items | Selectable items. |
T | Value assigned to the field. |
T |
public static bool Dropdown<T>(GUIContent label, IList<int> selected, IList<T> items, bool multiSelection, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Collections.Generic.IList<System.Int32> | selected | Current selection. |
System.Collections.Generic.IList<T> | items | Avaible items in the dropdown. |
System.Boolean | multiSelection | If |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Boolean |
|
T |
public static T Dropdown<T>(Rect rect, T selected, T[] items, string[] itemNames)
UnityEngine.Rect | rect | Position and size of the field. |
T | selected | Current value. |
T[] | items | |
System.String[] | itemNames | Names of selectable items. If |
T | Value assigned to the field. |
T |
public static bool Dropdown<T>(Rect rect, IList<int> selected, IList<T> items, bool multiSelection)
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 |
System.Boolean |
|
T |
public static T Dropdown<T>(Rect rect, string label, T selected, T[] items, string[] itemNames)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
T | selected | Current value. |
T[] | items | |
System.String[] | itemNames | Names of selectable items. If |
T | Value assigned to the field. |
T |
public static bool Dropdown<T>(Rect rect, string label, IList<int> selected, IList<T> items, bool multiSelection)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
System.Collections.Generic.IList<System.Int32> | selected | Current selection. |
System.Collections.Generic.IList<T> | items | Avaible items in the dropdown. |
System.Boolean | multiSelection | If |
System.Boolean |
|
T |
public static T Dropdown<T>(Rect rect, GUIContent label, T selected, T[] items, string[] itemNames)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
T | selected | Current value. |
T[] | items | |
System.String[] | itemNames | Names of selectable items. If |
T | Value assigned to the field. |
T |
public static T Dropdown<T>(Rect rect, GUIContent label, T selected, T[] items, string[] itemNames, GUIStyle style)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
T | selected | Current value. |
T[] | items | Selectable items. |
System.String[] | itemNames | Names of selectable items. If |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
T | Value assigned to the field. |
T |
public static T Dropdown<T>(Rect rect, GUIContent label, T selected, IList<T> items)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
T | selected | Current value. |
System.Collections.Generic.IList<T> | items | Selectable items. |
T | Value assigned to the field. |
T |
public static bool Dropdown<T>(Rect rect, GUIContent label, IList<int> selected, IList<T> items, bool multiSelection)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Collections.Generic.IList<System.Int32> | selected | Current selection. |
System.Collections.Generic.IList<T> | items | Avaible items in the dropdown. |
System.Boolean | multiSelection | If |
System.Boolean |
|
T |
public static Enum EnumDropdown(Enum selected, params GUILayoutOption[] options)
System.Enum | selected | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Enum | Value assigned to the field. |
public static Enum EnumDropdown(string label, Enum selected, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
System.Enum | selected | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Enum | Value assigned to the field. |
public static Enum EnumDropdown(GUIContent label, Enum selected, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Enum | selected | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Enum | Value assigned to the field. |
public static Enum EnumDropdown(GUIContent label, Enum selected, GUIStyle style, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Enum | selected | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Enum | Value assigned to the field. |
public static Enum EnumDropdown(Rect rect, Enum selected)
UnityEngine.Rect | rect | Position and size of the field. |
System.Enum | selected | Current value. |
System.Enum | Value assigned to the field. |
public static Enum EnumDropdown(Rect rect, string label, Enum selected)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
System.Enum | selected | Current value. |
System.Enum | Value assigned to the field. |
public static Enum EnumDropdown(Rect rect, GUIContent label, Enum selected)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Enum | selected | Current value. |
System.Enum | Value assigned to the field. |
public static Enum EnumDropdown(Rect rect, GUIContent label, Enum selected, GUIStyle style)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Enum | selected | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
System.Enum | Value assigned to the field. |
public static Quaternion EulerField(string label, Quaternion value, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
UnityEngine.Quaternion | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
UnityEngine.Quaternion | Value assigned to the field. |
public static Quaternion EulerField(GUIContent label, Quaternion value, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
UnityEngine.Quaternion | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
UnityEngine.Quaternion | Value assigned to the field. |
public static Quaternion EulerField(Quaternion value, params GUILayoutOption[] options)
UnityEngine.Quaternion | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
UnityEngine.Quaternion | Value assigned to the field. |
public static Quaternion EulerField(Rect rect, string label, Quaternion value)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
UnityEngine.Quaternion | value | Current value. |
UnityEngine.Quaternion | Value assigned to the field. |
public static Quaternion EulerField(Rect rect, GUIContent label, Quaternion value)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
UnityEngine.Quaternion | value | Current value. |
UnityEngine.Quaternion | Value assigned to the field. |
public static Quaternion EulerField(Rect rect, Quaternion value)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.Quaternion | value | Current value. |
UnityEngine.Quaternion | Value assigned to the field. |
public static string FilePathField(string path, string parentPath, string extensions, bool absolutePath, bool useBackslashes, params GUILayoutOption[] options)
System.String | path | The current value. |
System.String | parentPath | A parent path the path needs to be relative to. Use |
System.String | extensions | Comma separated list of allowed file extensions. Use |
System.Boolean | absolutePath | If |
System.Boolean | useBackslashes | If |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.String | A path to a file. |
public static string FilePathField(GUIContent label, string path, string parentPath, string extensions, bool absolutePath, bool useBackslashes, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.String | path | The current value. |
System.String | parentPath | A parent path the path needs to be relative to. Use |
System.String | extensions | Comma separated list of allowed file extensions. Use |
System.Boolean | absolutePath | If |
System.Boolean | useBackslashes | If |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.String | A path to a file. |
public static string FilePathField(Rect rect, string path, string parentPath, string extensions, bool absolutePath, bool useBackslashes)
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 |
System.String | extensions | Comma separated list of allowed file extensions. Use |
System.Boolean | absolutePath | If |
System.Boolean | useBackslashes | If |
System.String | A path to a file. |
public static string FilePathField(Rect rect, GUIContent label, string path, string parentPath, string extensions, bool absolutePath, bool useBackslashes)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.String | path | The current value. |
System.String | parentPath | A parent path the path needs to be relative to. Use |
System.String | extensions | Comma separated list of allowed file extensions. Use |
System.Boolean | absolutePath | If |
System.Boolean | useBackslashes | If |
System.String | A path to a file. |
public static float FloatField(float value, params GUILayoutOption[] options)
System.Single | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Single | Value assigned to the field. |
public static float FloatField(string label, float value, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
System.Single | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Single | Value assigned to the field. |
public static float FloatField(GUIContent label, float value, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Single | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Single | Value assigned to the field. |
public static float FloatField(GUIContent label, float value, GUIStyle style, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Single | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Single | Value assigned to the field. |
public static float FloatField(Rect rect, float value)
UnityEngine.Rect | rect | Position and size of the field. |
System.Single | value | Current value. |
System.Single | Value assigned to the field. |
public static float FloatField(Rect rect, string label, float value)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
System.Single | value | Current value. |
System.Single | Value assigned to the field. |
public static float FloatField(Rect rect, GUIContent label, float value)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Single | value | Current value. |
System.Single | Value assigned to the field. |
public static float FloatField(Rect rect, GUIContent label, float value, GUIStyle style)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Single | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
System.Single | Value assigned to the field. |
public static string FolderPathField(string path, string parentPath, bool absolutePath, bool useBackslashes, params GUILayoutOption[] options)
System.String | path | The current value. |
System.String | parentPath | A parent path the path needs to be relative to. Use |
System.Boolean | absolutePath | If |
System.Boolean | useBackslashes | If |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.String | A path to a folder. |
public static string FolderPathField(GUIContent label, string path, string parentPath, bool absolutePath, bool useBackslashes, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.String | path | The current value. |
System.String | parentPath | A parent path the path needs to be relative to. Use |
System.Boolean | absolutePath | If |
System.Boolean | useBackslashes | If |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.String | A path to a folder. |
public static string FolderPathField(Rect rect, string path, string parentPath, bool absolutePath, bool useBackslashes)
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 |
System.Boolean | absolutePath | If |
System.Boolean | useBackslashes | If |
System.String | A path to a folder. |
public static string FolderPathField(Rect rect, GUIContent label, string path, string parentPath, bool absolutePath, bool useBackslashes)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.String | path | The current value. |
System.String | parentPath | A parent path the path needs to be relative to. Use |
System.Boolean | absolutePath | If |
System.Boolean | useBackslashes | If |
System.String | A path to a folder. |
public static Guid GuidField(GUIContent label, Guid value)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Guid | value | Current value. |
System.Guid | Value assigned to the field. |
public static Guid GuidField(GUIContent label, Guid value, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Guid | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Guid | Value assigned to the field. |
public static Guid GuidField(GUIContent label, Guid value, GUIStyle style, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Guid | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Guid | Value assigned to the field. |
public static Guid GuidField(Rect rect, Guid value)
UnityEngine.Rect | rect | Position and size of the field. |
System.Guid | value | Current value. |
System.Guid | Value assigned to the field. |
public static Guid GuidField(Rect rect, GUIContent label, Guid value)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Guid | value | Current value. |
System.Guid | Value assigned to the field. |
public static Guid GuidField(Rect rect, GUIContent label, Guid value, GUIStyle style)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Guid | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
System.Guid | Value assigned to the field. |
public static int IntField(int value, params GUILayoutOption[] options)
System.Int32 | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int32 | Value assigned to the field. |
public static int IntField(string label, int value, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
System.Int32 | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int32 | Value assigned to the field. |
public static int IntField(GUIContent label, int value, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int32 | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int32 | Value assigned to the field. |
public static int IntField(GUIContent label, int value, GUIStyle style, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int32 | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int32 | Value assigned to the field. |
public static int IntField(Rect rect, int value)
UnityEngine.Rect | rect | Position and size of the field. |
System.Int32 | value | Current value. |
System.Int32 | Value assigned to the field. |
public static int IntField(Rect rect, string label, int value)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
System.Int32 | value | Current value. |
System.Int32 | Value assigned to the field. |
public static int IntField(Rect rect, GUIContent label, int value)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int32 | value | Current value. |
System.Int32 | Value assigned to the field. |
public static int IntField(Rect rect, GUIContent label, int value, GUIStyle style)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int32 | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
System.Int32 | Value assigned to the field. |
public static LayerMask LayerMaskField(string label, LayerMask layerMask, params GUILayoutOption[] options)
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. |
UnityEngine.LayerMask |
public static LayerMask LayerMaskField(GUIContent label, LayerMask layerMask, params GUILayoutOption[] options)
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. |
UnityEngine.LayerMask |
public static LayerMask LayerMaskField(LayerMask layerMask, params GUILayoutOption[] options)
UnityEngine.LayerMask | layerMask | The layer mask to draw. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
UnityEngine.LayerMask |
public static LayerMask LayerMaskField(Rect rect, string label, LayerMask layerMask)
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. |
UnityEngine.LayerMask |
public static LayerMask LayerMaskField(Rect rect, GUIContent label, LayerMask layerMask)
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. |
UnityEngine.LayerMask |
public static LayerMask LayerMaskField(Rect rect, LayerMask layerMask)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.LayerMask | layerMask | The layer mask to draw. |
UnityEngine.LayerMask |
public static long LongField(long value, params GUILayoutOption[] options)
System.Int64 | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int64 | Value assigned to the field. |
public static long LongField(string label, long value, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
System.Int64 | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int64 | Value assigned to the field. |
public static long LongField(GUIContent label, long value, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int64 | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int64 | Value assigned to the field. |
public static long LongField(GUIContent label, long value, GUIStyle style, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int64 | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
UnityEngine.GUILayoutOption[] | options | Layout options. |
System.Int64 | Value assigned to the field. |
public static long LongField(Rect rect, long value)
UnityEngine.Rect | rect | Position and size of the field. |
System.Int64 | value | Current value. |
System.Int64 | Value assigned to the field. |
public static long LongField(Rect rect, string label, long value)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
System.Int64 | value | Current value. |
System.Int64 | Value assigned to the field. |
public static long LongField(Rect rect, GUIContent label, long value)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int64 | value | Current value. |
System.Int64 | Value assigned to the field. |
public static long LongField(Rect rect, GUIContent label, long value, GUIStyle style)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
System.Int64 | value | Current value. |
UnityEngine.GUIStyle | style | GUIStyle for drawing the field. Set to |
System.Int64 | Value assigned to the field. |
public static void MinMaxSlider(ref float minValue, ref float maxValue, float minLimit, float maxLimit, bool showFields, params GUILayoutOption[] options)
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. |
public static void MinMaxSlider(string label, ref float minValue, ref float maxValue, float minLimit, float maxLimit, bool showFields = false, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
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. |
public static Vector2 MinMaxSlider(string label, Vector2 value, Vector2 limits, bool showFields = false, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
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. |
UnityEngine.Vector2 | A Vector2 with X set as min value, and Y to set as max value. |
public static void MinMaxSlider(GUIContent label, ref float minValue, ref float maxValue, float minLimit, float maxLimit, bool showFields = false, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
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. |
public static Vector2 MinMaxSlider(GUIContent label, Vector2 value, Vector2 limits, bool showFields = false, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
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. |
UnityEngine.Vector2 | A Vector2 with X set as min value, and Y to set as max value. |
public static void MinMaxSlider(Rect rect, ref float minValue, ref float maxValue, float minLimit, float maxLimit, bool showFields)
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. |
public static void MinMaxSlider(Rect rect, string label, ref float minValue, ref float maxValue, float minLimit, float maxLimit, bool showFields = false)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
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. |
public static Vector2 MinMaxSlider(Rect rect, string label, Vector2 value, Vector2 limits, bool showFields = false)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
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.Vector2 | A Vector2 with X set as min value, and Y to set as max value. |
public static void MinMaxSlider(Rect rect, GUIContent label, ref float minValue, ref float maxValue, float minLimit, float maxLimit, bool showFields = false)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
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. |
public static Vector2 MinMaxSlider(Rect rect, GUIContent label, Vector2 value, Vector2 limits, bool showFields = false)
UnityEngine.Rect | rect | Position and size of the field. |
UnityEngine.GUIContent | label | Label of field. Set to |
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.Vector2 | A Vector2 with X set as min value, and Y to set as max value. |
public static Vector2 MinMaxSlider(Rect rect, Vector2 value, Vector2 limits, bool showFields)
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. |
UnityEngine.Vector2 | A Vector2 with X set as min value, and Y to set as max value. |
public static Vector2 MinMaxSlider(Vector2 value, Vector2 limits, bool showFields, params GUILayoutOption[] options)
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. |
UnityEngine.Vector2 | A Vector2 with X set as min value, and Y to set as max value. |
public static object PolymorphicObjectField(object value, Type type, bool allowSceneObjects, params GUILayoutOption[] options)
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. |
System.Object |
public static object PolymorphicObjectField(string label, object value, Type type, bool allowSceneObjects, params GUILayoutOption[] options)
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. |
System.Object |
public static object PolymorphicObjectField(GUIContent label, object value, Type type, bool allowSceneObjects, params GUILayoutOption[] options)
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. |
System.Object |
public static object PolymorphicObjectField(Rect rect, object value, Type type, bool allowSceneObjects, bool hasKeyboardFocus, int id)
UnityEngine.Rect | rect | |
System.Object | value | |
System.Type | type | |
System.Boolean | allowSceneObjects | |
System.Boolean | hasKeyboardFocus | |
System.Int32 | id |
System.Object |
public static object PolymorphicObjectField(Rect rect, GUIContent label, object value, Type type, bool allowSceneObjects)
UnityEngine.Rect | rect | |
UnityEngine.GUIContent | label | |
System.Object | value | |
System.Type | type | |
System.Boolean | allowSceneObjects |
System.Object |
public static TElement PreviewObjectField<TElement>(Rect rect, TElement value, bool dragOnly = false, bool allowMove = true, bool allowSwap = true, bool allowSceneObjects = true)
UnityEngine.Rect | rect | |
TElement | value | |
System.Boolean | dragOnly | |
System.Boolean | allowMove | |
System.Boolean | allowSwap | |
System.Boolean | allowSceneObjects |
TElement |
TElement |
public static double ProgressBarField(double value, double minValue, double maxValue, ProgressBarConfig config, params GUILayoutOption[] options)
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. |
System.Double |
public static double ProgressBarField(double value, double minValue, double maxValue, params GUILayoutOption[] options)
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. |
System.Double |
public static double ProgressBarField(string label, double value, double minValue, double maxValue, ProgressBarConfig config, params GUILayoutOption[] options)
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. |
System.Double |
public static double ProgressBarField(string label, double value, double minValue, double maxValue, params GUILayoutOption[] options)
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. |
System.Double |
public static double ProgressBarField(GUIContent label, double value, double minValue, double maxValue, ProgressBarConfig config, params GUILayoutOption[] options)
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. |
System.Double |
public static double ProgressBarField(GUIContent label, double value, double minValue, double maxValue, params GUILayoutOption[] options)
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. |
System.Double |
public static double ProgressBarField(Rect rect, double value, double minValue, double maxValue)
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. |
System.Double |
public static double ProgressBarField(Rect rect, double value, double minValue, double maxValue, ProgressBarConfig config)
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. |
System.Double |
public static double ProgressBarField(Rect rect, string label, double value, double minValue, double maxValue)
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. |
System.Double |
public static double ProgressBarField(Rect rect, string label, double value, double minValue, double maxValue, ProgressBarConfig config)
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. |
System.Double |
public static double ProgressBarField(Rect rect, GUIContent label, double value, double minValue, double maxValue)
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. |
System.Double |
public static double ProgressBarField(Rect rect, GUIContent label, double value, double minValue, double maxValue, ProgressBarConfig config)
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.Double |
public static double ProgressBarField(Rect rect, GUIContent label, double value, double minValue, double maxValue, ProgressBarConfig config, string valueLabel)
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. |
System.Double |
public static void ProgressBarOverlayLabel(Rect rect, GUIContent label, float progress, ProgressBarConfig config)
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. |
public static Quaternion QuaternionField(string label, Quaternion value, params GUILayoutOption[] options)
System.String | label | Label of field. Set to |
UnityEngine.Quaternion | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
UnityEngine.Quaternion | Value assigned to the field. |
public static Quaternion QuaternionField(GUIContent label, Quaternion value, params GUILayoutOption[] options)
UnityEngine.GUIContent | label | Label of field. Set to |
UnityEngine.Quaternion | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
UnityEngine.Quaternion | Value assigned to the field. |
public static Quaternion QuaternionField(Quaternion value, params GUILayoutOption[] options)
UnityEngine.Quaternion | value | Current value. |
UnityEngine.GUILayoutOption[] | options | Layout options. |
UnityEngine.Quaternion | Value assigned to the field. |
public static Quaternion QuaternionField(Rect rect, string label, Quaternion value)
UnityEngine.Rect | rect | Position and size of the field. |
System.String | label | Label of field. Set to |
UnityEngine.Quaternion | value | Current value. |
UnityEngine.Quaternion | Value assigned to the field. |
public static Quaternion QuaternionField(Rect rect, GUIContent label, Quaternion value)
UnityEngine.Rect | rect | Position and size of the field. |