Search Unity

Question TextMeshPro font size in world space problem

Discussion in 'UGUI & TextMesh Pro' started by FreeYourBody, Oct 27, 2022.

  1. FreeYourBody

    FreeYourBody

    Joined:
    Jul 9, 2018
    Posts:
    2
    The question is pretty simple: how to scale ui text in world space correctly?
    Explained:
    I wanna use UI in world space (terrain and characters info)
    When I add canvas to world space and place, for example, image - everything is good. Canvas has "pixels per unit" config for it
    But, when I try to add text - the font size is too big
    For comparision. I place default 1x1x1 cube right from Unity 3D objects. Which is supposed to be 1 meter height. And then add to it text - the size of 1 symbol is around the height of the cube with the font size = 1.
    I tried to use font sizes less than 1 - it works, but the min step is 0.05 which is not resolve all cases
    Also I can set the less scale of text, but it still feels like building a bicycle.

    Any suggestions? Best practices of UI in world space?