Reimport upgraded TextMesh Pro, modified.
This commit is contained in:
15
Assets/TextMesh Pro/Scripts/Runtime/TMP_InputValidator.cs
Normal file
15
Assets/TextMesh Pro/Scripts/Runtime/TMP_InputValidator.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user