Unity - Scripting API: EditorGUILayout.RectField
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Declaration
public static Rect RectField(string label, Rect value, params GUILayoutOption[] options);
Declaration
public static Rect RectField(GUIContent label, Rect value, params GUILayoutOption[] options);
Returns
Rect The value entered by the user.
Description
Make an X, Y, W & H field for entering a Rect.

Capture the RectField sizes.