Vector2IntField
Make an X & Y integer field for entering a Vector2Int.
阅读时间2 分钟最后更新于 21 天前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
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 style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Additional 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 style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.
Additional 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. |