Yo!
So I'm making a virtual keyboard and noticed that whenever I add a " " (space) after a letter it doesn't render with the correct width?
If I do double (a space after a space) or a letter after the space the width is correct!
Don't know if this is the "correct" way to do it, but I just add " " to a local string and set that string to STM.text:
public void KeyboardSpace() { inputText += " "; STM.text = inputText; }
inputText being just a local string that I add strings to.
If I inspect the SuperTextMesh component the Layout Properties seems to give me the correct Preferred Width and Height when I add/remove a character and with single or double spacing! I'm also using finalBottomRightTextBounds for the caret x-position and that seems to follow the rendering spacing.
Might not be super clear but there is a small width change whenever I add a space!
Any way to solve this?
Thanks! :-)
/Lucas