Vector2IntField
Makes an X and Y integer field for entering a Vector2Int.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
Vector2IntField(Rect, string, Vector2Int)
Makes an X and Y integer field for entering a Vector2Int.
public static Vector2Int Vector2IntField(Rect position, string label, Vector2Int value)
Parameters
Rectangle on the screen to use for the field.
Label to display above the field.
The value to edit.
Returns
Type | Description |
|---|---|
| Vector2Int | The value entered by the user. |
Vector2IntField(Rect, GUIContent, Vector2Int)
Makes an X and Y integer field for entering a Vector2Int.
public static Vector2Int Vector2IntField(Rect position, GUIContent label, Vector2Int value)
Parameters
Rectangle on the screen to use for the field.
Label to display above the field.
The value to edit.
Returns
Type | Description |
|---|---|
| Vector2Int | The value entered by the user. |