Свойство | Тип | Описание | |
---|---|---|---|
activeTextColor | Color | ||
caretColor | Color | ||
characterLimit | int | ||
current | UIInput, | ||
inputType | InputType, | ||
keyboardType | KeyboardType | ||
label | UILabel, | ||
onChange | List |
||
onSubmit | List |
||
onValidate | OnValidate | ||
savedAs | string | ||
selectOnTab | GameObject | ||
selection | UIInput | ||
selectionColor | Color | ||
validation | Validation |
Свойство | Тип | Описание | |
---|---|---|---|
mBlankTex | |||
mCaret | UITexture, | ||
mDefaultColor | Color | ||
mDefaultText | string | ||
mDoInit | bool | ||
mDrawStart | int | ||
mHighlight | UITexture, | ||
mKeyboard | |||
mLastIME | string | ||
mNextBlink | float | ||
mPivot | UIWidget.Pivot | ||
mPosition | float | ||
mSelectionEnd | int | ||
mSelectionStart | int |
Свойство | Тип | Описание | |
---|---|---|---|
ProcessEvent | bool |
Метод | Описание | |
---|---|---|
OnDisable ( ) : void |
Ensure we've released the dynamically created resources.
|
|
OnGUI ( ) : void |
Unfortunately Unity 4.3 and earlier doesn't offer a way to properly process events outside of OnGUI.
|
|
Start ( ) : void |
Automatically set the value by loading it from player prefs if possible.
|
|
Submit ( ) : void |
Submit the input field's text.
|
|
Update ( ) : void | ||
UpdateLabel ( ) : void |
Update the visual text label.
|
|
Validate ( string val ) : string |
Validate the specified text, returning the validated version.
|
Метод | Описание | |
---|---|---|
Cleanup ( ) : void |
Cleanup.
|
|
ExecuteOnChange ( ) : void |
Execute the OnChange callback.
|
|
GetCharUnderMouse ( ) : int |
Helper function that retrieves the index of the character under the mouse.
|
|
GetLeftText ( ) : string |
Get the text to the left of the selection.
|
|
GetRightText ( ) : string |
Get the text to the right of the selection.
|
|
GetSelection ( ) : string |
Get currently selected text.
|
|
Init ( ) : void |
Labels used for input shouldn't support rich text.
|
|
Insert ( string text ) : void |
Insert the specified text string into the current input value, respecting selection and validation.
|
|
OnDeselectEvent ( ) : void |
Notification of the input field losing selection.
|
|
OnDrag ( Vector2 delta ) : void |
Drag selection.
|
|
OnPress ( bool isPressed ) : void |
Move the caret on press.
|
|
OnSelect ( bool isSelected ) : void |
Selection event, sent by the EventSystem.
|
|
OnSelectEvent ( ) : void |
Notification of the input field gaining selection.
|
|
RestoreLabelPivot ( ) : void |
Restore the input label's pivot point.
|
|
SaveToPlayerPrefs ( string val ) : void |
Save the specified value to player prefs.
|
|
SetPivotToLeft ( ) : void |
Set the label's pivot to the left.
|
|
SetPivotToRight ( ) : void |
Set the label's pivot to the right.
|
|
Validate ( string text, int pos, char ch ) : char |
Validate the specified input.
|
Метод | Описание | |
---|---|---|
ProcessEvent ( Event ev ) : bool |
Handle the specified event.
|
protected OnPress ( bool isPressed ) : void | ||
isPressed | bool | |
Результат | void |
protected OnSelect ( bool isSelected ) : void | ||
isSelected | bool | |
Результат | void |
protected SaveToPlayerPrefs ( string val ) : void | ||
val | string | |
Результат | void |
protected Validate ( string text, int pos, char ch ) : char | ||
text | string | |
pos | int | |
ch | char | |
Результат | char |
protected Texture2D,UnityEngine mBlankTex | ||
Результат |
static protected TouchScreenKeyboard,UnityEngine mKeyboard | ||
Результат |