Class LongField
Makes a text field for entering long integers.
Inheritance
LongField
Inherited Members
Namespace: UnityEditor.UIElements
Syntax
public class LongField : TextValueField<long>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IBindable, INotifyValueChanged<long>, IMixedValueSupport, IValueField<long>
Constructors
LongField()
Constructor.
Declaration
public LongField()
LongField(Int32)
Constructor.
Declaration
public LongField(int maxLength)
Parameters
Type | Name | Description |
---|---|---|
Int32 | maxLength | Maximum number of characters the field can take. |
LongField(String, Int32)
Constructor.
Declaration
public LongField(string label, int maxLength = null)
Parameters
Type | Name | Description |
---|---|---|
String | label | |
Int32 | maxLength | Maximum number of characters the field can take. |
Fields
inputUssClassName
USS class name of input elements in elements of this type.
Declaration
public static readonly string inputUssClassName
Field Value
Type | Description |
---|---|
String |
labelUssClassName
USS class name of labels in elements of this type.
Declaration
public static readonly string labelUssClassName
Field Value
Type | Description |
---|---|
String |
ussClassName
USS class name of elements of this type.
Declaration
public static readonly string ussClassName
Field Value
Type | Description |
---|---|
String |
Methods
ApplyInputDeviceDelta(Vector3, DeltaSpeed, Int64)
Modify the value using a 3D delta and a speed, typically coming from an input device.
Declaration
public override void ApplyInputDeviceDelta(Vector3 delta, DeltaSpeed speed, long startValue)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | delta | A vector used to compute the value change. |
DeltaSpeed | speed | A multiplier for the value change. |
Int64 | startValue | The start value. |
Overrides
UnityEditor.UIElements.TextValueField<System.Int64>.ApplyInputDeviceDelta(Vector3, UnityEditor.UIElements.DeltaSpeed, System.Int64)
StringToValue(String)
Converts a string to a long integer.
Declaration
protected override long StringToValue(string str)
Parameters
Type | Name | Description |
---|---|---|
String | str | The string to convert. |
Returns
Type | Description |
---|---|
Int64 | The long integer parsed from the string. |
Overrides
UnityEngine.UIElements.TextInputBaseField<System.Int64>.StringToValue(System.String)
ValueToString(Int64)
Converts the given long integer to a string.
Declaration
protected override string ValueToString(long v)
Parameters
Type | Name | Description |
---|---|---|
Int64 | v | The long integer to be converted to string. |
Returns
Type | Description |
---|---|
String | The long integer as string. |
Overrides
UnityEngine.UIElements.TextInputBaseField<System.Int64>.ValueToString(System.Int64)