Caret position incorrect for TextInput with TextMeshPro
Posted: Wed Sep 23, 2020 3:31 pm
Hi,
I've been enjoying using your asset and made great progress but this is driving me nuts - I'm recently converted the Basic Standard Dialogue UI to use TextMeshPro components instead of the regular ones, and its all working great except that the caret on the Input control is not in the right place.
This is the TMP input control:
This is the regular input control:
I am sure this is a problem with the auto layout, but if I turn that off then the label does not resize correctly with the text. Has anyone come across this problem before and found a solution? The only other thing I changed in the prefab was to push the control slightly higher on the screen.
I've been enjoying using your asset and made great progress but this is driving me nuts - I'm recently converted the Basic Standard Dialogue UI to use TextMeshPro components instead of the regular ones, and its all working great except that the caret on the Input control is not in the right place.
This is the TMP input control:
This is the regular input control:
I am sure this is a problem with the auto layout, but if I turn that off then the label does not resize correctly with the text. Has anyone come across this problem before and found a solution? The only other thing I changed in the prefab was to push the control slightly higher on the screen.