Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


LongField

Make a text field for entering long integers.
Read time 5 minutesLast updated 11 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

LongField(long, GUILayoutOption[])

Make a text field for entering long integers.
public static long LongField(long value, params GUILayoutOption[] options)

Parameters

value

The value to edit.

An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the
style
.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

longThe value entered by the user.

Remarks

LongField(long, GUIStyle, GUILayoutOption[])

Make a text field for entering long integers.
public static long LongField(long value, GUIStyle style, params GUILayoutOption[] options)

Parameters

value

The value to edit.

Optional GUIStyle.

An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the
style
.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

longThe value entered by the user.

Remarks

LongField(string, long, GUILayoutOption[])

Make a text field for entering long integers.
public static long LongField(string label, long value, params GUILayoutOption[] options)

Parameters

label

Optional label to display in front of the long field.

value

The value to edit.

An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the
style
.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

longThe value entered by the user.

Remarks

LongField(string, long, GUIStyle, GUILayoutOption[])

Make a text field for entering long integers.
public static long LongField(string label, long value, GUIStyle style, params GUILayoutOption[] options)

Parameters

label

Optional label to display in front of the long field.

value

The value to edit.

Optional GUIStyle.

An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the
style
.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

longThe value entered by the user.

Remarks

LongField(GUIContent, long, GUILayoutOption[])

Make a text field for entering long integers.
public static long LongField(GUIContent label, long value, params GUILayoutOption[] options)

Parameters

Optional label to display in front of the long field.

value

The value to edit.

An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the
style
.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

longThe value entered by the user.

Remarks

LongField(GUIContent, long, GUIStyle, GUILayoutOption[])

Make a text field for entering long integers.
public static long LongField(GUIContent label, long value, GUIStyle style, params GUILayoutOption[] options)

Parameters

Optional label to display in front of the long field.

value

The value to edit.

Optional GUIStyle.

An optional list of layout options that specify extra layout properties. Any values passed in here will override settings defined by the
style
.
Additional Resources: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

Returns

Type

Description

longThe value entered by the user.

Remarks