Class UIntField
Makes a text field for entering an unsigned integer.
Namespace: UnityEngine.Perception.UIElements
Syntax
public class UIntField : TextValueField<uint>
Constructors
UIntField()
Constructor.
Declaration
public UIntField()
UIntField(Int32)
Constructor.
Declaration
public UIntField(int maxLength)
Parameters
Type | Name | Description |
---|---|---|
Int32 | maxLength | Maximum number of characters the field can take. |
UIntField(String, Int32)
Declaration
public UIntField(string label, int maxLength = null)
Parameters
Type | Name | Description |
---|---|---|
String | label | |
Int32 | maxLength |
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, UInt32)
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, uint startValue)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | delta | A vector used to compute the value change. |
DeltaSpeed | speed | A multiplier for the value change. |
UInt32 | startValue | The start value. |
ClampInput(Int64)
Declaration
public static uint ClampInput(long input)
Parameters
Type | Name | Description |
---|---|---|
Int64 | input |
Returns
Type | Description |
---|---|
UInt32 |
StringToValue(String)
Converts a string to an uint.
Declaration
protected override uint StringToValue(string str)
Parameters
Type | Name | Description |
---|---|---|
String | str | The string to convert. |
Returns
Type | Description |
---|---|
UInt32 | The uint parsed from the string. |
ValueToString(UInt32)
Converts the given uint to a string.
Declaration
protected override string ValueToString(uint v)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | v | The uint to be converted to string. |
Returns
Type | Description |
---|---|
String | The uint as string. |