Vector2IntField
Make an X & Y integer field for entering a Vector2Int.
Read time 2 minutesLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
Vector2IntField(string, Vector2Int, GUILayoutOption[])
Make an X & Y integer field for entering a Vector2Int.
public static Vector2Int Vector2IntField(string label, Vector2Int value, params GUILayoutOption[] options)
Parameters
Label to display above the 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 |
|---|---|
| Vector2Int | The value entered by the user. |
Vector2IntField(GUIContent, Vector2Int, GUILayoutOption[])
Make an X & Y integer field for entering a Vector2Int.
public static Vector2Int Vector2IntField(GUIContent label, Vector2Int value, params GUILayoutOption[] options)
Parameters
Label to display above the 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 |
|---|---|
| Vector2Int | The value entered by the user. |