Class TMP_InputValidator
Important
This package is deprecated. From Unity 2023.2, TextMesh Pro is part of the Unity UI (uGUI) package. For current documentation, refer to TextMesh Pro in the Unity UI package.
Custom text input validator where user can implement their own custom character validation.
Inherited Members
Object.GetEntityId()
Object.GetInstanceID()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags
Namespace: TMPro
Assembly: Unity.TextMeshPro.dll
Syntax
[Serializable]
public abstract class TMP_InputValidator : ScriptableObject
Methods
Validate(ref string, ref int, char)
Customs text input validation function.
Declaration
public abstract char Validate(ref string text, ref int pos, char ch)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The original text |
| int | pos | The position in the string to add the caharcter |
| char | ch | The character to add |
Returns
| Type | Description |
|---|---|
| char | The character added |