Search Unity

Bug TMPro Input Field Caret Is Huge When Font Size Is Small

Discussion in 'UGUI & TextMesh Pro' started by Bmco, Nov 12, 2021.

  1. Bmco


    Mar 11, 2020
    I am utilizing input fields for a World Space UI. Sometimes, the text needs to appear at a consistent size and position while the Camera's orthosize is growing/shrinking.

    Everything works great. I have achieved this by dynamically changing the font size and rect transforms of the input field. However, if I click on the TMPIF to edit it at a very small size, the caret is way too big and pushes the first few characters out of the viewport. See my attached video.

    I've already confirmed that scaling the TMPIF doesn't cause this problem. I've just invested a good chunk of time building it one way.