Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. 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

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    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

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    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.