EditorGUI.FloatField Manual     Reference     Scripting  
Scripting > Editor Classes > EditorGUI
EditorGUI.FloatField

static function FloatField (position : Rect, value : float, style : GUIStyle = EditorStyles.numberField) : float

static function FloatField (position : Rect, label : string, value : float, style : GUIStyle = EditorStyles.numberField) : float

static function FloatField (position : Rect, label : GUIContent, value : float, style : GUIStyle = EditorStyles.numberField) : float

Parameters

NameDescription
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.
style Optional GUIStyle.

Returns

float - The value entered by the user.

Description

Make a text field for entering floats.