EditorGUI.RectField Manual     Reference     Scripting  
Scripting > Editor Classes > EditorGUI
EditorGUI.RectField

static function RectField (position : Rect, value : Rect) : Rect

static function RectField (position : Rect, label : string, value : Rect) : Rect

static function RectField (position : Rect, label : GUIContent, value : Rect) : Rect

Parameters

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

Returns

Rect - The value entered by the user.

Description

Make an X, Y, W & H field for entering a Rect.