DoubleField
Make a text field for entering double values.
Read time 5 minutesLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
DoubleField(double, GUILayoutOption[])
Make a text field for entering double values.
public static double DoubleField(double value, params GUILayoutOption[] options)
Parameters
The value to edit.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| double | The value entered by the user. |
Remarks
Additional Resources: EditorGUILayout.FloatField, EditorGUILayout.IntField, EditorGUILayout.LongField.
DoubleField(double, GUIStyle, GUILayoutOption[])
Make a text field for entering double values.
public static double DoubleField(double value, GUIStyle style, params GUILayoutOption[] options)
Parameters
The value to edit.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| double | The value entered by the user. |
Remarks
Additional Resources: EditorGUILayout.FloatField, EditorGUILayout.IntField, EditorGUILayout.LongField.
DoubleField(string, double, GUILayoutOption[])
Make a text field for entering double values.
public static double DoubleField(string label, double value, params GUILayoutOption[] options)
Parameters
Optional label to display in front of the double field.
The value to edit.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| double | The value entered by the user. |
Remarks
Additional Resources: EditorGUILayout.FloatField, EditorGUILayout.IntField, EditorGUILayout.LongField.
DoubleField(string, double, GUIStyle, GUILayoutOption[])
Make a text field for entering double values.
public static double DoubleField(string label, double value, GUIStyle style, params GUILayoutOption[] options)
Parameters
Optional label to display in front of the double field.
The value to edit.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| double | The value entered by the user. |
Remarks
Additional Resources: EditorGUILayout.FloatField, EditorGUILayout.IntField, EditorGUILayout.LongField.
DoubleField(GUIContent, double, GUILayoutOption[])
Make a text field for entering double values.
public static double DoubleField(GUIContent label, double value, params GUILayoutOption[] options)
Parameters
Optional label to display in front of the double field.
The value to edit.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| double | The value entered by the user. |
Remarks
Additional Resources: EditorGUILayout.FloatField, EditorGUILayout.IntField, EditorGUILayout.LongField.
DoubleField(GUIContent, double, GUIStyle, GUILayoutOption[])
Make a text field for entering double values.
public static double DoubleField(GUIContent label, double value, GUIStyle style, params GUILayoutOption[] options)
Parameters
Optional label to display in front of the double field.
The value to edit.
An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the .
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
styleAdditional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Returns
Type | Description |
|---|---|
| double | The value entered by the user. |
Remarks
Additional Resources: EditorGUILayout.FloatField, EditorGUILayout.IntField, EditorGUILayout.LongField.