Class TMP_InputField
Editable text input field.
Implements
Inherited Members
Namespace: TMPro
Assembly: solution.dll
Syntax
[AddComponentMenu("UI/TextMeshPro - Input Field", 11)]
public class TMP_InputField : Selectable, IMoveHandler, IPointerDownHandler, IPointerUpHandler, IPointerEnterHandler, IPointerExitHandler, ISelectHandler, IDeselectHandler, IUpdateSelectedHandler, IBeginDragHandler, IDragHandler, IEndDragHandler, IPointerClickHandler, ISubmitHandler, ICanvasElement, ILayoutElement, IScrollHandler, IEventSystemHandler
Constructors
Name | Description |
---|---|
TMP_Input |
Fields
Properties
Name | Description |
---|---|
asterisk |
|
caret |
|
caret |
|
caret |
Get: Returns the focus position as thats the position that moves around even during selection. Set: Set both the anchor and focus position such that a selection doesn't happen |
caret |
Current position of the cursor. Getters are public Setters are protected |
caret |
|
caret |
|
character |
|
character |
|
content |
|
custom |
|
flexible |
See ILayoutElement.flexibleHeight. |
flexible |
See ILayoutElement.flexibleWidth. |
font |
Sets the Font Asset on both Placeholder and Input child objects. |
input |
|
input |
Sets the Input Validation to use a Custom Input Validation script. |
is |
|
is |
Is Rich Text editing allowed? |
keyboard |
|
layout |
See ILayoutElement.layoutPriority. |
line |
Limits the number of lines of text in the Input Field. |
line |
|
mesh | |
min |
See ILayoutElement.minHeight. |
min |
See ILayoutElement.minWidth. |
multi |
|
on |
|
on |
|
on |
|
on |
Determines if the whole text will be selected when focused. |
on |
|
on |
|
on |
|
on |
|
on |
|
on |
|
placeholder | |
point |
Set the point size on both Placeholder and Input text object. |
preferred |
Get the height of all the text if constrained to the height of the RectTransform. |
preferred |
Get the displayed with of all input characters. |
read |
|
reset |
Determines if the text and caret position as well as selection will be reset when the input field is deactivated. |
restore |
Controls whether the original text is restored when pressing "ESC". |
rich |
|
scroll |
|
selection |
Get: Returns the fixed position of selection Set: If compositionString is 0 set the fixed position |
selection |
|
selection |
Get: Returns the variable position of selection Set: If compositionString is 0 set the variable position |
selection |
The fixed position of the selection in the raw string which may contains rich text. |
selection |
The variable position of the selection in the raw string which may contains rich text. |
should |
Should the mobile keyboard input be hidden. |
should |
|
string |
|
string |
|
string |
|
text | Input field's current text value. This is not necessarily the same as what is visible on screen. |
text |
|
text |
|
vertical |
|
was |