Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DelayedFloatField

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

Definition

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

DelayedFloatField(Rect, float, GUIStyle)

Makes a delayed text field for entering floats.
public static float DelayedFloatField(Rect position, float value, GUIStyle style)

Parameters

position

Rectangle on the screen to use for the float field.

value

The value to edit.

Optional GUIStyle.

Returns

Type

Description

floatThe 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 float field.

Remarks

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

DelayedFloatField(Rect, string, float, GUIStyle)

Makes a delayed text field for entering floats.
public static float DelayedFloatField(Rect position, string label, float value, GUIStyle style)

Parameters

position

Rectangle on the screen to use for the float field.

label

Optional label to display in front of the float field.

value

The value to edit.

Optional GUIStyle.

Returns

Type

Description

floatThe 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 float field.

Remarks

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

DelayedFloatField(Rect, GUIContent, float, GUIStyle)

Makes a delayed text field for entering floats.
public static float DelayedFloatField(Rect position, GUIContent label, float value, GUIStyle style)

Parameters

position

Rectangle on the screen to use for the float field.

Optional label to display in front of the float field.

value

The value to edit.

Optional GUIStyle.

Returns

Type

Description

floatThe 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 float field.

Remarks

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

DelayedFloatField(Rect, SerializedProperty, GUIContent)

Makes a delayed text field for entering floats.
public static void DelayedFloatField(Rect position, SerializedProperty property, GUIContent label)

Parameters

position

Rectangle on the screen to use for the float field.

The float property to edit.

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

Remarks

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