Search Unity

TextMeshPro Input Field Custom Input Validator Breaking The Character Limit

Discussion in 'UGUI & TextMesh Pro' started by waxx, Jul 24, 2021.

  1. waxx

    waxx

    Joined:
    Apr 1, 2013
    Posts:
    48
    Hello.

    I seem to have run into an issue with the TextMeshPro InputField component where by setting a custom input validator the character limit specified in the input field settings no longer works. Getting rid of the input validator fixes the character limit, but well, I'd like to have both on.

    Is this a known bug?

    Cheers,
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    I will take a look when I have a chance but in the meantime, you could control the character limit via the custom validator.
     
  3. waxx

    waxx

    Joined:
    Apr 1, 2013
    Posts:
    48
    The problem is I use the validator in question in multiple popups which all have a different character limit that I set dynamically in the code.