Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DelayedIntField

Makes a delayed text field for entering integers.
Read time 2 minutesLast updated 4 days ago

Definition

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

DelayedIntField(Rect, int, GUIStyle)

Makes a delayed text field for entering integers.
public static int DelayedIntField(Rect position, int value, GUIStyle style)

Parameters

position

Rectangle on the screen to use for the int field.

value

The value to edit.

Optional GUIStyle.

Returns

Type

Description

intThe value entered by the user. Note that the return value will not change until the user has pressed enter or focus is moved away from the int field.

Remarks

Similar to EditorGUI.IntField but will not return the new value until the user has pressed enter or focus is moved away from the int field.

DelayedIntField(Rect, string, int, GUIStyle)

Makes a delayed text field for entering integers.
public static int DelayedIntField(Rect position, string label, int value, GUIStyle style)

Parameters

position

Rectangle on the screen to use for the int field.

label

Optional label to display in front of the int field.

value

The value to edit.

Optional GUIStyle.

Returns

Type

Description

intThe value entered by the user. Note that the return value will not change until the user has pressed enter or focus is moved away from the int field.

Remarks

Similar to EditorGUI.IntField but will not return the new value until the user has pressed enter or focus is moved away from the int field.

DelayedIntField(Rect, GUIContent, int, GUIStyle)

Makes a delayed text field for entering integers.
public static int DelayedIntField(Rect position, GUIContent label, int value, GUIStyle style)

Parameters

position

Rectangle on the screen to use for the int field.

Optional label to display in front of the int field.

value

The value to edit.

Optional GUIStyle.

Returns

Type

Description

intThe value entered by the user. Note that the return value will not change until the user has pressed enter or focus is moved away from the int field.

Remarks

Similar to EditorGUI.IntField but will not return the new value until the user has pressed enter or focus is moved away from the int field.

DelayedIntField(Rect, SerializedProperty, GUIContent)

The value entered by the user. Note that the return value will not change until the user has pressed enter or focus is moved away from the int field.
public static void DelayedIntField(Rect position, SerializedProperty property, GUIContent label)

Parameters

position

Rectangle on the screen to use for the int field.

The int property to edit.

Optional label to display in front of the int field. Pass GUIContent.none to hide label.

Remarks

Similar to EditorGUI.IntField but will not return the new value until the user has pressed enter or focus is moved away from the int field.