Class TMP_InputValidator
Custom text input validator where user can implement their own custom character validation.
Inherited Members
Namespace: TMPro
Assembly: Unity.TextMeshPro.dll
Syntax
[Serializable]
public abstract class TMP_InputValidator : ScriptableObject
Methods
Validate(ref string, ref int, char)
Declaration
public abstract char Validate(ref string text, ref int pos, char ch)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | |
| int | pos | |
| char | ch |
Returns
| Type | Description |
|---|---|
| char |