C# Class UnityEditor.UIElements.IntegerField

Makes a text field for entering an integer.
Inheritance: TextValueField
Afficher le fichier Open project: needle-mirror/com.unity.ui Class Usage Examples

Méthodes publiques

Свойство Type Description
inputUssClassName string
labelUssClassName string
ussClassName string

Private Properties

Свойство Type Description
CanTryParse bool

Méthodes publiques

Méthode Description
ApplyInputDeviceDelta ( Vector3 delta, DeltaSpeed speed, startValue ) : void

Modify the value using a 3D delta and a speed, typically coming from an input device.

IntegerField ( ) : System

Constructor.

IntegerField ( maxLength ) : System

Constructor.

IntegerField ( string label, maxLength = kMaxLengthNone ) : System

Constructor.

Méthodes protégées

Méthode Description
StringToValue ( string str ) : int

Converts a string to an integer.

ValueToString ( v ) : string

Converts the given integer to a string.

Private Methods

Méthode Description
CanTryParse ( string textString ) : bool

Method Details

ApplyInputDeviceDelta() public méthode

Modify the value using a 3D delta and a speed, typically coming from an input device.
public ApplyInputDeviceDelta ( Vector3 delta, DeltaSpeed speed, startValue ) : void
delta Vector3 A vector used to compute the value change.
speed DeltaSpeed A multiplier for the value change.
startValue The start value.
Résultat void

IntegerField() public méthode

Constructor.
public IntegerField ( ) : System
Résultat System

IntegerField() public méthode

Constructor.
public IntegerField ( maxLength ) : System
maxLength Maximum number of characters the field can take.
Résultat System

IntegerField() public méthode

Constructor.
public IntegerField ( string label, maxLength = kMaxLengthNone ) : System
label string
maxLength Maximum number of characters the field can take.
Résultat System

StringToValue() protected méthode

Converts a string to an integer.
protected StringToValue ( string str ) : int
str string The string to convert.
Résultat int

ValueToString() protected méthode

Converts the given integer to a string.
protected ValueToString ( v ) : string
v The integer to be converted to string.
Résultat string

Property Details

inputUssClassName public_oe static_oe property

USS class name of input elements in elements of this type.
public static string inputUssClassName
Résultat string

labelUssClassName public_oe static_oe property

USS class name of labels in elements of this type.
public static string labelUssClassName
Résultat string

ussClassName public_oe static_oe property

USS class name of elements of this type.
public static string ussClassName
Résultat string