TMP_InputValidator.cs 387 B

123456789101112131415
  1. using UnityEngine;
  2. using System.Collections;
  3. namespace TMPro
  4. {
  5. /// <summary>
  6. /// Custom text input validator where user can implement their own custom character validation.
  7. /// </summary>
  8. [System.Serializable]
  9. public abstract class TMP_InputValidator : ScriptableObject
  10. {
  11. public abstract char Validate(ref string text, ref int pos, char ch);
  12. }
  13. }