Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RectIntField

Make an X, Y, W & H field for entering a RectInt.
Read time 2 minutesLast updated 5 days ago

Definition

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

RectIntField(RectInt, GUILayoutOption[])

Make an X, Y, W & H field for entering a RectInt.
public static RectInt RectIntField(RectInt value, params GUILayoutOption[] options)

Parameters

value

The value to edit.

An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

RectIntThe value entered by the user.

RectIntField(string, RectInt, GUILayoutOption[])

Make an X, Y, W & H field for entering a RectInt.
public static RectInt RectIntField(string label, RectInt value, params GUILayoutOption[] options)

Parameters

label

Label to display above the field.

value

The value to edit.

An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

RectIntThe value entered by the user.

RectIntField(GUIContent, RectInt, GUILayoutOption[])

Make an X, Y, W & H field for entering a RectInt.
public static RectInt RectIntField(GUIContent label, RectInt value, params GUILayoutOption[] options)

Parameters

Label to display above the field.

value

The value to edit.

An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the style.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

RectIntThe value entered by the user.