Manual     Reference     Scripting  
  
Scripting > Editor Classes > EditorGUI   

EditorGUI.Vector2Field  

static function Vector2Field (position : Rect, label : string, value : Vector2) : Vector2

Parameters

NameDescription
position Rectangle on the screen to use for the field.
label Label to display above the field.
value The value to edit.

Returns

Vector2 - The value entered by the user.

Description

Make an X & Y field for entering a Vector2.