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

Ui text is really blurry.

Discussion in 'Editor & General Support' started by itsdandd, May 18, 2020.

  1. itsdandd

    itsdandd

    Joined:
    Jan 6, 2020
    Posts:
    44
    When I made some text in Unity for a title screen (Under the Ui) and scaled it to 5 it got really blurry. Is there a way to make it less blurrier?
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,064
    Yes, use TextMeshPro versions of the text instead of the "normal" Unity Text.
     
    itsdandd likes this.
  3. warrencwwong

    warrencwwong

    Joined:
    Aug 17, 2018
    Posts:
    25
    You can also set the canvas to pixel perfect(it worked for me)
     
    CassioTDS and Joe-Censored like this.
  4. itsdandd

    itsdandd

    Joined:
    Jan 6, 2020
    Posts:
    44
    Where can I find TextMeshPro?
     
  5. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Instead of scaling the GameObject, you can try increasing the font size without increasing the scale, and as already mentioned set pixel perfect.

    It is a package, so you add it in the Package Manager if not already there.
    https://docs.unity3d.com/Manual/upm-ui.html

    It is used somewhat similarly to a UI.Text component, though you do have the added step of having to generate font assets for it ahead of time. I think that step generates 3D models from whatever fonts you want to use.
     
  6. itsdandd

    itsdandd

    Joined:
    Jan 6, 2020
    Posts:
    44
    Thanks for the help! TextMeshPro is not blurry at all!
     
  7. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,064
    Not 3d models, just an image that can be then used for SDF font rendering.
     
    Joe-Censored likes this.
  8. HernandoNJ

    HernandoNJ

    Joined:
    May 13, 2018
    Posts:
    75
    I had an issue while editing the project, in case it happens to someone else.
    If you are editing the project (not in play mode) and the UI appears blurry in the scene tab, you need to increase the size of the game tab. Game tab bigger, scene tab UI clearer.
     
    Noor23 likes this.
  9. CassioTDS

    CassioTDS

    Joined:
    Jan 21, 2020
    Posts:
    12
    That works perfectly. Thank you.
     
  10. Tobi_Chan

    Tobi_Chan

    Joined:
    Mar 16, 2022
    Posts:
    3
    Instead of scaling it up in the inspector, use the rect tool and scale up the font size, this worked for me
     
  11. mohammedmushtaq9800

    mohammedmushtaq9800

    Joined:
    Feb 6, 2023
    Posts:
    1
    you can set the dynamic pixels per unit to match the Refrence pixels per unit in the canvas unspector