Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DoubleField

Makes a text field for entering doubles.
Read time 1 minuteLast updated 6 days ago

Definition

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

DoubleField(Rect, double, GUIStyle)

Makes a text field for entering doubles.
public static double DoubleField(Rect position, double value, GUIStyle style)

Parameters

position

Rectangle on the screen to use for the double field.

value

The value to edit.

Optional GUIStyle.

Returns

Type

Description

doubleThe value entered by the user.

Remarks

DoubleField(Rect, string, double, GUIStyle)

Makes a text field for entering doubles.
public static double DoubleField(Rect position, string label, double value, GUIStyle style)

Parameters

position

Rectangle on the screen to use for the double field.

label

Optional label to display in front of the double field.

value

The value to edit.

Optional GUIStyle.

Returns

Type

Description

doubleThe value entered by the user.

Remarks

DoubleField(Rect, GUIContent, double, GUIStyle)

Makes a text field for entering doubles.
public static double DoubleField(Rect position, GUIContent label, double value, GUIStyle style)

Parameters

position

Rectangle on the screen to use for the double field.

Optional label to display in front of the double field.

value

The value to edit.

Optional GUIStyle.

Returns

Type

Description

doubleThe value entered by the user.

Remarks