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

static function IntField (position : Rect, value : int, style : GUIStyle = EditorStyles.numberField) : int

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

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

Parameters

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

Returns

int - The value entered by the user.

Description

Make a text field for entering integers.