C# 클래스 UnityEditor.UIElements.IntegerField

Makes a text field for entering an integer.
상속: TextValueField
파일 보기 프로젝트 열기: needle-mirror/com.unity.ui 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
inputUssClassName string
labelUssClassName string
ussClassName string

Private Properties

프로퍼티 타입 설명
CanTryParse bool

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
StringToValue ( string str ) : int

Converts a string to an integer.

ValueToString ( v ) : string

Converts the given integer to a string.

비공개 메소드들

메소드 설명
CanTryParse ( string textString ) : bool

메소드 상세

ApplyInputDeviceDelta() 공개 메소드

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.
리턴 void

IntegerField() 공개 메소드

Constructor.
public IntegerField ( ) : System
리턴 System

IntegerField() 공개 메소드

Constructor.
public IntegerField ( maxLength ) : System
maxLength Maximum number of characters the field can take.
리턴 System

IntegerField() 공개 메소드

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

StringToValue() 보호된 메소드

Converts a string to an integer.
protected StringToValue ( string str ) : int
str string The string to convert.
리턴 int

ValueToString() 보호된 메소드

Converts the given integer to a string.
protected ValueToString ( v ) : string
v The integer to be converted to string.
리턴 string

프로퍼티 상세

inputUssClassName 공개적으로 정적으로 프로퍼티

USS class name of input elements in elements of this type.
public static string inputUssClassName
리턴 string

labelUssClassName 공개적으로 정적으로 프로퍼티

USS class name of labels in elements of this type.
public static string labelUssClassName
리턴 string

ussClassName 공개적으로 정적으로 프로퍼티

USS class name of elements of this type.
public static string ussClassName
리턴 string