Hue Preserving Color Blending
Classes | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Properties | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
TMPro.TMP_InputField Class Reference

Editable text input field. More...

Inheritance diagram for TMPro.TMP_InputField:

Classes

class  OnChangeEvent
 
class  SelectionEvent
 
class  SubmitEvent
 
class  TextSelectionEvent
 

Public Types

enum  ContentType {
  Standard, Autocorrected, IntegerNumber, DecimalNumber,
  Alphanumeric, Name, EmailAddress, Password,
  Pin, Custom
}
 
enum  InputType { Standard, AutoCorrect, Password }
 
enum  CharacterValidation {
  None, Digit, Integer, Decimal,
  Alphanumeric, Name, Regex, EmailAddress,
  CustomValidator
}
 
enum  LineType { SingleLine, MultiLineSubmit, MultiLineNewline }
 

Public Member Functions

delegate char OnValidateInput (string text, int charIndex, char addedChar)
 
void MoveTextEnd (bool shift)
 Move to the end of the text. More...
 
void MoveTextStart (bool shift)
 Move to the start of the text. More...
 
void MoveToEndOfLine (bool shift, bool ctrl)
 Move to the end of the current line of text. More...
 
void MoveToStartOfLine (bool shift, bool ctrl)
 Move to the start of the current line of text. More...
 
virtual void OnBeginDrag (PointerEventData eventData)
 
virtual void OnDrag (PointerEventData eventData)
 
virtual void OnEndDrag (PointerEventData eventData)
 
override void OnPointerDown (PointerEventData eventData)
 
void ProcessEvent (Event e)
 
virtual void OnUpdateSelected (BaseEventData eventData)
 
virtual void OnScroll (PointerEventData eventData)
 
void ForceLabelUpdate ()
 
virtual void Rebuild (CanvasUpdate update)
 
virtual void LayoutComplete ()
 
virtual void GraphicUpdateComplete ()
 
void ActivateInputField ()
 
override void OnSelect (BaseEventData eventData)
 
virtual void OnPointerClick (PointerEventData eventData)
 
void OnControlClick ()
 
void DeactivateInputField ()
 
override void OnDeselect (BaseEventData eventData)
 
virtual void OnSubmit (BaseEventData eventData)
 
void SetGlobalPointSize (float pointSize)
 Function to conveniently set the point size of both Placeholder and Input Field text object. More...
 
void SetGlobalFontAsset (TMP_FontAsset fontAsset)
 Function to conveniently set the Font Asset of both Placeholder and Input Field text object. More...
 

Protected Types

enum  EditState { Continue, Finish }
 

Protected Member Functions

void ClampStringPos (ref int pos)
 
void ClampCaretPos (ref int pos)
 
override void OnEnable ()
 
override void OnDisable ()
 
void OnFocus ()
 
void SelectAll ()
 
virtual void LateUpdate ()
 Update the text based on input. More...
 
EditState KeyPressed (Event evt)
 
virtual void Append (string input)
 Append the specified text to the end of the current. More...
 
virtual void Append (char input)
 
void SendOnEndEdit ()
 Submit the input field's text. More...
 
void SendOnSubmit ()
 
void SendOnFocus ()
 
void SendOnFocusLost ()
 
void SendOnTextSelection ()
 
void SendOnEndTextSelection ()
 
void UpdateLabel ()
 Update the visual text Text. More...
 
char Validate (string text, int pos, char ch)
 Validate the specified input. More...
 
override void DoStateTransition (SelectionState state, bool instant)
 

Protected Attributes

TouchScreenKeyboard m_Keyboard
 
RectTransform m_TextViewport
 Text Text used to display the input's value. More...
 
TMP_Text m_TextComponent
 
RectTransform m_TextComponentRectTransform
 
Graphic m_Placeholder
 
Scrollbar m_VerticalScrollbar
 
TMP_ScrollbarEventHandler m_VerticalScrollbarEventHandler
 
float m_ScrollSensitivity = 1.0f
 
string m_Text = string.Empty
 Input field's value. More...
 
int m_StringPosition = 0
 
int m_StringSelectPosition = 0
 
int m_CaretPosition = 0
 
int m_CaretSelectPosition = 0
 
UIVertex [] m_CursorVerts = null
 
Mesh m_Mesh
 
bool m_CaretVisible
 
TMP_FontAsset m_GlobalFontAsset
 
bool m_OnFocusSelectAll = true
 
bool m_isSelectAll
 
bool m_ResetOnDeActivation = true
 
bool m_isRichTextEditingAllowed = true
 
TMP_InputValidator m_InputValidator = null
 

Properties

Mesh mesh [get]
 
bool shouldHideMobileInput [get, set]
 Should the mobile keyboard input be hidden. More...
 
string text [get, set]
 Input field's current text value. More...
 
bool isFocused [get]
 
float caretBlinkRate [get, set]
 
int caretWidth [get, set]
 
RectTransform textViewport [get, set]
 
TMP_Text textComponent [get, set]
 
Graphic placeholder [get, set]
 
Scrollbar verticalScrollbar [get, set]
 
float scrollSensitivity [get, set]
 
Color? caretColor [get, set]
 
bool customCaretColor [get, set]
 
Color selectionColor [get, set]
 
SubmitEvent onEndEdit [get, set]
 
SubmitEvent onSubmit [get, set]
 
SelectionEvent onSelect [get, set]
 
SelectionEvent onDeselect [get, set]
 
TextSelectionEvent onTextSelection [get, set]
 
TextSelectionEvent onEndTextSelection [get, set]
 
OnChangeEvent onValueChanged [get, set]
 
OnValidateInput onValidateInput [get, set]
 
int characterLimit [get, set]
 
float pointSize [get, set]
 Set the point size on both Placeholder and Input text object. More...
 
TMP_FontAsset fontAsset [get, set]
 Sets the Font Asset on both Placeholder and Input child objects. More...
 
bool onFocusSelectAll [get, set]
 Determines if the whole text will be selected when focused. More...
 
bool resetOnDeActivation [get, set]
 Determines if the text and caret position as well as selection will be reset when the input field is deactivated. More...
 
bool restoreOriginalTextOnEscape [get, set]
 Controls whether the original text is restored when pressing "ESC". More...
 
bool isRichTextEditingAllowed [get, set]
 Is Rich Text editing allowed? More...
 
ContentType contentType [get, set]
 
LineType lineType [get, set]
 
InputType inputType [get, set]
 
TouchScreenKeyboardType keyboardType [get, set]
 
CharacterValidation characterValidation [get, set]
 
TMP_InputValidator inputValidator [get, set]
 Sets the Input Validation to use a Custom Input Validation script. More...
 
bool readOnly [get, set]
 
bool richText [get, set]
 
bool multiLine [get]
 
char asteriskChar [get, set]
 
bool wasCanceled [get]
 
int caretPositionInternal [get, set]
 Current position of the cursor. Getters are public Setters are protected More...
 
int stringPositionInternal [get, set]
 
int caretSelectPositionInternal [get, set]
 
int stringSelectPositionInternal [get, set]
 
bool hasSelection [get]
 
int caretPosition [get, set]
 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 More...
 
int selectionAnchorPosition [get, set]
 Get: Returns the fixed position of selection Set: If Input.compositionString is 0 set the fixed position More...
 
int selectionFocusPosition [get, set]
 Get: Returns the variable position of selection Set: If Input.compositionString is 0 set the variable position More...
 
int stringPosition [get, set]
 
int selectionStringAnchorPosition [get, set]
 The fixed position of the selection in the raw string which may contains rich text. More...
 
int selectionStringFocusPosition [get, set]
 The variable position of the selection in the raw string which may contains rich text. More...
 
static string clipboard [get, set]
 

Private Member Functions

void ON_TEXT_CHANGED (UnityEngine.Object obj)
 Method used to update the tracking of the caret position when the text object has been regenerated. More...
 
IEnumerator CaretBlink ()
 
void SetCaretVisible ()
 
void SetCaretActive ()
 
bool InPlaceEditing ()
 
bool MayDrag (PointerEventData eventData)
 
IEnumerator MouseDragOutsideRect (PointerEventData eventData)
 
bool IsValidChar (char c)
 
string GetSelectedString ()
 
int FindtNextWordBegin ()
 
void MoveRight (bool shift, bool ctrl)
 
int FindtPrevWordBegin ()
 
void MoveLeft (bool shift, bool ctrl)
 
int LineUpCharacterPosition (int originalPos, bool goToFirstChar)
 
int LineDownCharacterPosition (int originalPos, bool goToLastChar)
 
int PageUpCharacterPosition (int originalPos, bool goToFirstChar)
 
int PageDownCharacterPosition (int originalPos, bool goToLastChar)
 
void MoveDown (bool shift)
 
void MoveDown (bool shift, bool goToLastChar)
 
void MoveUp (bool shift)
 
void MoveUp (bool shift, bool goToFirstChar)
 
void MovePageUp (bool shift)
 
void MovePageUp (bool shift, bool goToFirstChar)
 
void MovePageDown (bool shift)
 
void MovePageDown (bool shift, bool goToLastChar)
 
void Delete ()
 
void ForwardSpace ()
 Handling of DEL key More...
 
void Backspace ()
 Handling of Backspace key More...
 
void Insert (char c)
 
void SendOnValueChangedAndUpdateLabel ()
 
void SendOnValueChanged ()
 
void UpdateScrollbar ()
 
void OnScrollbarValueChange (float value)
 Function to update the vertical position of the text container when OnValueChanged event is received from the Scrollbar. More...
 
void AdjustTextPositionRelativeToViewport (float relativePosition)
 Adjusts the relative position of the body of the text relative to the viewport. More...
 
int GetCaretPositionFromStringIndex (int stringIndex)
 
int GetStringIndexFromCaretPosition (int caretPosition)
 
void MarkGeometryAsDirty ()
 
void UpdateGeometry ()
 
void AssignPositioningIfNeeded ()
 Method to keep the Caret RectTransform properties in sync with the text object's RectTransform More...
 
void OnFillVBO (Mesh vbo)
 
void GenerateCaret (VertexHelper vbo, Vector2 roundingOffset)
 
void CreateCursorVerts ()
 
void GenerateHightlight (VertexHelper vbo, Vector2 roundingOffset)
 
void AdjustRectTransformRelativeToViewport (Vector2 startPosition, float height, bool isCharVisible)
 
void ActivateInputFieldInternal ()
 
void EnforceContentType ()
 
void SetTextComponentWrapMode ()
 
void SetTextComponentRichTextMode ()
 
void SetToCustomIfContentTypeIsNot (params ContentType[] allowedContentTypes)
 
void SetToCustom ()
 
void SetToCustom (CharacterValidation characterValidation)
 

Private Attributes

float m_ScrollPosition
 Used to keep track of scroll position More...
 
ContentType m_ContentType = ContentType.Standard
 
InputType m_InputType = InputType.Standard
 Type of data expected by the input field. More...
 
char m_AsteriskChar = '*'
 The character used to hide text in password field. More...
 
TouchScreenKeyboardType m_KeyboardType = TouchScreenKeyboardType.Default
 Keyboard type applies to mobile keyboards that get shown. More...
 
LineType m_LineType = LineType.SingleLine
 
bool m_HideMobileInput = false
 Should hide mobile input. More...
 
CharacterValidation m_CharacterValidation = CharacterValidation.None
 What kind of validation to use with the input field's data. More...
 
string m_RegexValue = string.Empty
 The Regex expression used for validating the text input. More...
 
float m_GlobalPointSize = 14
 The point sized used by the placeholder and input text object. More...
 
int m_CharacterLimit = 0
 Maximum number of characters allowed before input no longer works. More...
 
SubmitEvent m_OnEndEdit = new SubmitEvent()
 Event delegates triggered when the input field submits its data. More...
 
SubmitEvent m_OnSubmit = new SubmitEvent()
 Event delegates triggered when the input field submits its data. More...
 
SelectionEvent m_OnSelect = new SelectionEvent()
 Event delegates triggered when the input field is focused. More...
 
SelectionEvent m_OnDeselect = new SelectionEvent()
 Event delegates triggered when the input field focus is lost. More...
 
TextSelectionEvent m_OnTextSelection = new TextSelectionEvent()
 Event delegates triggered when the text is selected / highlighted. More...
 
TextSelectionEvent m_OnEndTextSelection = new TextSelectionEvent()
 Event delegates triggered when text is no longer select / highlighted. More...
 
OnChangeEvent m_OnValueChanged = new OnChangeEvent()
 Event delegates triggered when the input field changes its data. More...
 
OnValidateInput m_OnValidateInput
 Custom validation callback. More...
 
Color m_CaretColor = new Color(50f / 255f, 50f / 255f, 50f / 255f, 1f)
 
bool m_CustomCaretColor = false
 
Color m_SelectionColor = new Color(168f / 255f, 206f / 255f, 255f / 255f, 192f / 255f)
 
float m_CaretBlinkRate = 0.85f
 
int m_CaretWidth = 1
 
bool m_ReadOnly = false
 
bool m_RichText = true
 
RectTransform caretRectTrans = null
 
CanvasRenderer m_CachedInputRenderer
 
Vector2 m_DefaultTransformPosition
 
Vector2 m_LastPosition
 
bool m_AllowInput = false
 
bool m_ShouldActivateNextUpdate = false
 
bool m_UpdateDrag = false
 
bool m_DragPositionOutOfBounds = false
 
const float kHScrollSpeed = 0.05f
 
const float kVScrollSpeed = 0.10f
 
Coroutine m_BlinkCoroutine = null
 
float m_BlinkStartTime = 0.0f
 
Coroutine m_DragCoroutine = null
 
string m_OriginalText = ""
 
bool m_WasCanceled = false
 
bool m_HasDoneFocusTransition = false
 
bool m_IsScrollbarUpdateRequired = false
 
bool m_IsUpdatingScrollbarValues = false
 
bool m_isLastKeyBackspace = false
 
float m_ClickStartTime
 
float m_DoubleClickDelay = 0.5f
 
const string kEmailSpecialCharacters = "!#$%&'*+-/=?^_`{|}~"
 
bool m_RestoreOriginalTextOnEscape = true
 
bool m_isSelected
 
bool isStringPositionDirty
 
bool m_forceRectTransformAdjustment
 
Event m_ProcessingEvent = new Event()
 Handle the specified event. More...
 

Static Private Attributes

static readonly char [] kSeparators = { ' ', '.', ',', '\t', '\r', '\n' }
 

Detailed Description

Editable text input field.

Definition at line 21 of file TMP_InputField.cs.

Member Function Documentation

◆ AdjustRectTransformRelativeToViewport()

void TMPro.TMP_InputField.AdjustRectTransformRelativeToViewport ( Vector2  startPosition,
float  height,
bool  isCharVisible 
)
inlineprivate

Parameters
startPosition
height
isCharVisible

Definition at line 2981 of file TMP_InputField.cs.

◆ AdjustTextPositionRelativeToViewport()

void TMPro.TMP_InputField.AdjustTextPositionRelativeToViewport ( float  relativePosition)
inlineprivate

Adjusts the relative position of the body of the text relative to the viewport.

Parameters
relativePosition

Definition at line 2607 of file TMP_InputField.cs.

◆ Append()

virtual void TMPro.TMP_InputField.Append ( string  input)
inlineprotectedvirtual

Append the specified text to the end of the current.

Definition at line 2346 of file TMP_InputField.cs.

◆ AssignPositioningIfNeeded()

void TMPro.TMP_InputField.AssignPositioningIfNeeded ( )
inlineprivate

Method to keep the Caret RectTransform properties in sync with the text object's RectTransform

Definition at line 2727 of file TMP_InputField.cs.

◆ Backspace()

void TMPro.TMP_InputField.Backspace ( )
inlineprivate

Handling of Backspace key

Definition at line 2297 of file TMP_InputField.cs.

◆ ForwardSpace()

void TMPro.TMP_InputField.ForwardSpace ( )
inlineprivate

Handling of DEL key

Definition at line 2256 of file TMP_InputField.cs.

◆ LateUpdate()

virtual void TMPro.TMP_InputField.LateUpdate ( )
inlineprotectedvirtual

Update the text based on input.

Definition at line 1082 of file TMP_InputField.cs.

◆ MoveTextEnd()

void TMPro.TMP_InputField.MoveTextEnd ( bool  shift)
inline

Move to the end of the text.

Parameters
shift

Definition at line 931 of file TMP_InputField.cs.

◆ MoveTextStart()

void TMPro.TMP_InputField.MoveTextStart ( bool  shift)
inline

Move to the start of the text.

Parameters
shift

Definition at line 970 of file TMP_InputField.cs.

◆ MoveToEndOfLine()

void TMPro.TMP_InputField.MoveToEndOfLine ( bool  shift,
bool  ctrl 
)
inline

Move to the end of the current line of text.

Parameters
shift

Definition at line 1010 of file TMP_InputField.cs.

◆ MoveToStartOfLine()

void TMPro.TMP_InputField.MoveToStartOfLine ( bool  shift,
bool  ctrl 
)
inline

Move to the start of the current line of text.

Parameters
shift

Definition at line 1037 of file TMP_InputField.cs.

◆ ON_TEXT_CHANGED()

void TMPro.TMP_InputField.ON_TEXT_CHANGED ( UnityEngine.Object  obj)
inlineprivate

Method used to update the tracking of the caret position when the text object has been regenerated.

Parameters
obj

Definition at line 848 of file TMP_InputField.cs.

◆ OnScroll()

virtual void TMPro.TMP_InputField.OnScroll ( PointerEventData  eventData)
inlinevirtual

Parameters
eventData

Definition at line 1624 of file TMP_InputField.cs.

◆ OnScrollbarValueChange()

void TMPro.TMP_InputField.OnScrollbarValueChange ( float  value)
inlineprivate

Function to update the vertical position of the text container when OnValueChanged event is received from the Scrollbar.

Parameters
value

Definition at line 2590 of file TMP_InputField.cs.

◆ OnUpdateSelected()

virtual void TMPro.TMP_InputField.OnUpdateSelected ( BaseEventData  eventData)
inlinevirtual

Parameters
eventData

Definition at line 1578 of file TMP_InputField.cs.

◆ SendOnEndEdit()

void TMPro.TMP_InputField.SendOnEndEdit ( )
inlineprotected

Submit the input field's text.

Definition at line 2440 of file TMP_InputField.cs.

◆ SetGlobalFontAsset()

void TMPro.TMP_InputField.SetGlobalFontAsset ( TMP_FontAsset  fontAsset)
inline

Function to conveniently set the Font Asset of both Placeholder and Input Field text object.

Parameters
fontAsset

Definition at line 3496 of file TMP_InputField.cs.

◆ SetGlobalPointSize()

void TMPro.TMP_InputField.SetGlobalPointSize ( float  pointSize)
inline

Function to conveniently set the point size of both Placeholder and Input Field text object.

Parameters
pointSize

Definition at line 3484 of file TMP_InputField.cs.

◆ UpdateLabel()

void TMPro.TMP_InputField.UpdateLabel ( )
inlineprotected

Update the visual text Text.

Definition at line 2487 of file TMP_InputField.cs.

◆ Validate()

char TMPro.TMP_InputField.Validate ( string  text,
int  pos,
char  ch 
)
inlineprotected

Validate the specified input.

Definition at line 3064 of file TMP_InputField.cs.

Member Data Documentation

◆ m_AsteriskChar

char TMPro.TMP_InputField.m_AsteriskChar = '*'
private

The character used to hide text in password field.

Definition at line 143 of file TMP_InputField.cs.

◆ m_CharacterLimit

int TMPro.TMP_InputField.m_CharacterLimit = 0
private

Maximum number of characters allowed before input no longer works.

Definition at line 182 of file TMP_InputField.cs.

◆ m_CharacterValidation

CharacterValidation TMPro.TMP_InputField.m_CharacterValidation = CharacterValidation.None
private

What kind of validation to use with the input field's data.

Definition at line 164 of file TMP_InputField.cs.

◆ m_GlobalPointSize

float TMPro.TMP_InputField.m_GlobalPointSize = 14
private

The point sized used by the placeholder and input text object.

Definition at line 176 of file TMP_InputField.cs.

◆ m_HideMobileInput

bool TMPro.TMP_InputField.m_HideMobileInput = false
private

Should hide mobile input.

Definition at line 158 of file TMP_InputField.cs.

◆ m_InputType

InputType TMPro.TMP_InputField.m_InputType = InputType.Standard
private

Type of data expected by the input field.

Definition at line 137 of file TMP_InputField.cs.

◆ m_KeyboardType

TouchScreenKeyboardType TMPro.TMP_InputField.m_KeyboardType = TouchScreenKeyboardType.Default
private

Keyboard type applies to mobile keyboards that get shown.

Definition at line 149 of file TMP_InputField.cs.

◆ m_OnDeselect

SelectionEvent TMPro.TMP_InputField.m_OnDeselect = new SelectionEvent()
private

Event delegates triggered when the input field focus is lost.

Definition at line 206 of file TMP_InputField.cs.

◆ m_OnEndEdit

SubmitEvent TMPro.TMP_InputField.m_OnEndEdit = new SubmitEvent()
private

Event delegates triggered when the input field submits its data.

Definition at line 188 of file TMP_InputField.cs.

◆ m_OnEndTextSelection

TextSelectionEvent TMPro.TMP_InputField.m_OnEndTextSelection = new TextSelectionEvent()
private

Event delegates triggered when text is no longer select / highlighted.

Definition at line 218 of file TMP_InputField.cs.

◆ m_OnSelect

SelectionEvent TMPro.TMP_InputField.m_OnSelect = new SelectionEvent()
private

Event delegates triggered when the input field is focused.

Definition at line 200 of file TMP_InputField.cs.

◆ m_OnSubmit

SubmitEvent TMPro.TMP_InputField.m_OnSubmit = new SubmitEvent()
private

Event delegates triggered when the input field submits its data.

Definition at line 194 of file TMP_InputField.cs.

◆ m_OnTextSelection

TextSelectionEvent TMPro.TMP_InputField.m_OnTextSelection = new TextSelectionEvent()
private

Event delegates triggered when the text is selected / highlighted.

Definition at line 212 of file TMP_InputField.cs.

◆ m_OnValidateInput

OnValidateInput TMPro.TMP_InputField.m_OnValidateInput
private

Custom validation callback.

Definition at line 230 of file TMP_InputField.cs.

◆ m_OnValueChanged

OnChangeEvent TMPro.TMP_InputField.m_OnValueChanged = new OnChangeEvent()
private

Event delegates triggered when the input field changes its data.

Definition at line 224 of file TMP_InputField.cs.

◆ m_ProcessingEvent

Event TMPro.TMP_InputField.m_ProcessingEvent = new Event()
private

Handle the specified event.

Definition at line 1566 of file TMP_InputField.cs.

◆ m_RegexValue

string TMPro.TMP_InputField.m_RegexValue = string.Empty
private

The Regex expression used for validating the text input.

Definition at line 170 of file TMP_InputField.cs.

◆ m_ScrollPosition

float TMPro.TMP_InputField.m_ScrollPosition
private

Used to keep track of scroll position

Definition at line 119 of file TMP_InputField.cs.

◆ m_ScrollSensitivity

float TMPro.TMP_InputField.m_ScrollSensitivity = 1.0f
protected

Definition at line 125 of file TMP_InputField.cs.

◆ m_Text

string TMPro.TMP_InputField.m_Text = string.Empty
protected

Input field's value.

Definition at line 247 of file TMP_InputField.cs.

◆ m_TextViewport

RectTransform TMPro.TMP_InputField.m_TextViewport
protected

Text Text used to display the input's value.

Definition at line 97 of file TMP_InputField.cs.

Property Documentation

◆ caretPosition

int TMPro.TMP_InputField.caretPosition
getset

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

Definition at line 629 of file TMP_InputField.cs.

◆ caretPositionInternal

int TMPro.TMP_InputField.caretPositionInternal
getsetprotected

Current position of the cursor. Getters are public Setters are protected

Definition at line 613 of file TMP_InputField.cs.

◆ fontAsset

TMP_FontAsset TMPro.TMP_InputField.fontAsset
getset

Sets the Font Asset on both Placeholder and Input child objects.

Definition at line 498 of file TMP_InputField.cs.

◆ inputValidator

TMP_InputValidator TMPro.TMP_InputField.inputValidator
getset

Sets the Input Validation to use a Custom Input Validation script.

Definition at line 574 of file TMP_InputField.cs.

◆ isRichTextEditingAllowed

bool TMPro.TMP_InputField.isRichTextEditingAllowed
getset

Is Rich Text editing allowed?

Definition at line 550 of file TMP_InputField.cs.

◆ onFocusSelectAll

bool TMPro.TMP_InputField.onFocusSelectAll
getset

Determines if the whole text will be selected when focused.

Definition at line 516 of file TMP_InputField.cs.

◆ pointSize

float TMPro.TMP_InputField.pointSize
getset

Set the point size on both Placeholder and Input text object.

Definition at line 483 of file TMP_InputField.cs.

◆ resetOnDeActivation

bool TMPro.TMP_InputField.resetOnDeActivation
getset

Determines if the text and caret position as well as selection will be reset when the input field is deactivated.

Definition at line 528 of file TMP_InputField.cs.

◆ restoreOriginalTextOnEscape

bool TMPro.TMP_InputField.restoreOriginalTextOnEscape
getset

Controls whether the original text is restored when pressing "ESC".

Definition at line 539 of file TMP_InputField.cs.

◆ selectionAnchorPosition

int TMPro.TMP_InputField.selectionAnchorPosition
getset

Get: Returns the fixed position of selection Set: If Input.compositionString is 0 set the fixed position

Definition at line 639 of file TMP_InputField.cs.

◆ selectionFocusPosition

int TMPro.TMP_InputField.selectionFocusPosition
getset

Get: Returns the variable position of selection Set: If Input.compositionString is 0 set the variable position

Definition at line 660 of file TMP_InputField.cs.

◆ selectionStringAnchorPosition

int TMPro.TMP_InputField.selectionStringAnchorPosition
getset

The fixed position of the selection in the raw string which may contains rich text.

Definition at line 690 of file TMP_InputField.cs.

◆ selectionStringFocusPosition

int TMPro.TMP_InputField.selectionStringFocusPosition
getset

The variable position of the selection in the raw string which may contains rich text.

Definition at line 711 of file TMP_InputField.cs.

◆ shouldHideMobileInput

bool TMPro.TMP_InputField.shouldHideMobileInput
getset

Should the mobile keyboard input be hidden.

Definition at line 321 of file TMP_InputField.cs.

◆ stringPosition

int TMPro.TMP_InputField.stringPosition
getset

Definition at line 680 of file TMP_InputField.cs.

◆ text

string TMPro.TMP_InputField.text
getset

Input field's current text value.

Definition at line 346 of file TMP_InputField.cs.


The documentation for this class was generated from the following file: