Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Bug TMPInputField + CustomValidator + iOS/Android build = super strange behaviour

Discussion in 'UGUI & TextMesh Pro' started by FernwehSmith, Jul 14, 2022.

  1. FernwehSmith

    FernwehSmith

    Joined:
    Jan 31, 2022
    Posts:
    36
    Hi All,
    I've got a weird bug where any TMP Input Field that has a custom validator attached to it causes this weird behaviour when built to either Android or iOS.
    Nature of the behaviour:
    • Duplicates the existing text
    • Won't let me delete it
    • Only happens with Custom Validators AND iOS/Android Builds. Testing in editor or just choosing one of the pre-set validators does not produce this issue.
    Notes about the project and what I've tried:
    • Making an AR project with AR Foundation.
    • The input field pictured in the video is as default as you can get. Not apart of any prefabs and no custom scripts affecting it.
    • Tried both my own as well as unity's example validators. Behaviour is produced with all custom validators.
    • Testing in the editor works exactly as you would expect.
    Any guidance on this issue would be super helpful!
     
  2. Romilk31

    Romilk31

    Joined:
    Mar 22, 2019
    Posts:
    2
    Bump. Facing the issue with TextMeshPro 3.0.6 and unity 21.3.26f1.

    Edit: Fixed it by upgrading to preview TextMeshPro version 3.2.0-pre.4
     
    Last edited: Jun 29, 2023