LongField
Make a text field for entering long integers.
Read time 5 minutesLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
LongField(long, GUILayoutOption[])
Make a text field for entering long integers.
public static long LongField(long 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 |
|---|---|
| long | The value entered by the user. |
Remarks
Additional Resources: EditorGUILayout.IntField, EditorGUILayout.FloatField, EditorGUILayout.DoubleField.
LongField(long, GUIStyle, GUILayoutOption[])
Make a text field for entering long integers.
public static long LongField(long 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 |
|---|---|
| long | The value entered by the user. |
Remarks
Additional Resources: EditorGUILayout.IntField, EditorGUILayout.FloatField, EditorGUILayout.DoubleField.
LongField(string, long, GUILayoutOption[])
Make a text field for entering long integers.
public static long LongField(string label, long value, params GUILayoutOption[] options)
Parameters
Optional label to display in front of the long 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 |
|---|---|
| long | The value entered by the user. |
Remarks
Additional Resources: EditorGUILayout.IntField, EditorGUILayout.FloatField, EditorGUILayout.DoubleField.
LongField(string, long, GUIStyle, GUILayoutOption[])
Make a text field for entering long integers.
public static long LongField(string label, long value, GUIStyle style, params GUILayoutOption[] options)
Parameters
Optional label to display in front of the long 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 |
|---|---|
| long | The value entered by the user. |
Remarks
Additional Resources: EditorGUILayout.IntField, EditorGUILayout.FloatField, EditorGUILayout.DoubleField.
LongField(GUIContent, long, GUILayoutOption[])
Make a text field for entering long integers.
public static long LongField(GUIContent label, long value, params GUILayoutOption[] options)
Parameters
Optional label to display in front of the long 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 |
|---|---|
| long | The value entered by the user. |
Remarks
Additional Resources: EditorGUILayout.IntField, EditorGUILayout.FloatField, EditorGUILayout.DoubleField.
LongField(GUIContent, long, GUIStyle, GUILayoutOption[])
Make a text field for entering long integers.
public static long LongField(GUIContent label, long value, GUIStyle style, params GUILayoutOption[] options)
Parameters
Optional label to display in front of the long 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 |
|---|---|
| long | The value entered by the user. |
Remarks
Additional Resources: EditorGUILayout.IntField, EditorGUILayout.FloatField, EditorGUILayout.DoubleField.