UnityGame/Library/PackageCache/com.unity.ugui/Runtime/TMP/TMP_InputValidator.cs

16 lines
387 B
C#
Raw Normal View History

2024-10-27 10:53:47 +03:00
using UnityEngine;
using System.Collections;
namespace TMPro
{
/// <summary>
/// Custom text input validator where user can implement their own custom character validation.
/// </summary>
[System.Serializable]
public abstract class TMP_InputValidator : ScriptableObject
{
public abstract char Validate(ref string text, ref int pos, char ch);
}
}