Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EditorGUI.LongField

Switch to Manual
public static function LongField(position: Rect, label: string, value: long, style: GUIStyle = EditorStyles.numberField): long;
public static function LongField(position: Rect, label: GUIContent, value: long, style: GUIStyle = EditorStyles.numberField): long;

Parameters

positionRectangle on the screen to use for the long field.
labelOptional label to display in front of the long field.
valueThe value to edit.
styleOptional GUIStyle.

Returns

long The value entered by the user.

Description

Make a text field for entering integers.