Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Vector2IntField

Makes an X and Y integer field for entering a Vector2Int.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

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

position

Rectangle on the screen to use for the field.

label

Label to display above the field.

The value to edit.

Returns

Type

Description

Vector2IntThe 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

position

Rectangle on the screen to use for the field.

Label to display above the field.

The value to edit.

Returns

Type

Description

Vector2IntThe value entered by the user.