TextMeshProUGUI equivalent of .tabSize?

I’ve got a runtime code editor using TextMeshProUGUI, and it works great in most respects. The one place it really fails is with tabs. The tab size is, shall we say, excessive:

Is there any equivalent of tabSize in TMPro? Or any way to set tab stops? Maybe something on the font? I’m desperate for any way to get a more reasonable tab size here.

You can control Tab Width and Tab Multiples per font assets as seen below.

2 Likes

Is that a new feature? I don’t seem to have that in 2018.2.15…

4411387--401800--upload_2019-4-9_19-1-3.png

EDIT: While I don’t have Tab Width, I do have Tab Multiple, which appears to be something like how many spaces a tab should equal. This serves my needs. Thank you!

Tab Width is new and coming from the font file. Previously Tab Width was equal to the Space. Tab Multiple has been available for a long time.

2 Likes