Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

TextMesh Pro TextMeshPro scale

Discussion in 'UGUI & TextMesh Pro' started by JasonAppxplore, May 7, 2019.

  1. JasonAppxplore

    JasonAppxplore

    Joined:
    Jan 14, 2015
    Posts:
    18
    When I use TextMeshPro, the text is very small. Roughly 10 times smaller compared to a TextMeshProUGUI text. Is there any settings in the font to allow both texts to be the same size without individually setting the text object's scale?

    I'm using 1 pixel per unit for my sprites and camera settings, if that matters.
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    The normal TextMeshPro component matches the scale of the old TextMesh which is 10x smaller than the UGUI component.

    Those two system Mesh Renderer and CanvasRenderer have different scaling which I have to maintain for compatibility reasons.
     
  3. JasonAppxplore

    JasonAppxplore

    Joined:
    Jan 14, 2015
    Posts:
    18
    I see. So the only way would be to set their scale to 10 individually?
     
  4. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Sort of as this also depends on whether the camera is Orthographic or Perspective.

    If Orthographic and Camera size is set correctly then the dimensions of the RectTransform will be 1/10th of the RectTransform under a Canvas.

    If set to Perspective mode then it all depend on the camera distance / position / etc.
     
  5. JasonAppxplore

    JasonAppxplore

    Joined:
    Jan 14, 2015
    Posts:
    18
    Yes I am using Orthographic. Thanks.