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

Question TMP fuzzy on worldspace canvas

Discussion in 'UGUI & TextMesh Pro' started by Ojee111, Sep 9, 2022.

  1. Ojee111

    Ojee111

    Joined:
    Jul 13, 2020
    Posts:
    3
    Hi,

    I am trying to use TMP on a 2D app, whenver the TMP is generated though, it looks like this:

    upload_2022-9-9_13-38-36.png
    Here is the settings of the TMP:
    upload_2022-9-9_13-39-21.png

    and the worldspace canvas it belongs to:
    upload_2022-9-9_13-39-57.png

    Any help is much appreciated, thanks. upload_2022-9-9_13-38-36.png upload_2022-9-9_13-39-21.png upload_2022-9-9_13-39-57.png
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    Are you using the default Liberation Sans font asset? If not, make sure that your font asset Sampling Point Size to Padding Ratio is about 10%

    Are you using a Canvas Scaler? If so this is messing up the SDF Scale. An easy way to resolve this is to use one of the SSD variant of the SDF shaders. Select the material used by your font asset and switch the shader to the SSD version. The SSD version have SSD added as suffix to the shader name.

    Let me know if the above resolves your issue.
     
  3. Ojee111

    Ojee111

    Joined:
    Jul 13, 2020
    Posts:
    3
    Hi Stephan, thanks for your reply.

    I am using the default Liberation Sans SDF Font, with the Liberation Sans SDF Material:

    upload_2022-9-11_21-16-20.png

    I have changed the Shader:

    upload_2022-9-11_21-16-50.png

    But the text is still blurry.

    I am using the Universal Render Pipeline with the 2D Renderer:
    upload_2022-9-11_21-18-44.png

    Dont know if that makes a difference.
     
  4. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    I believe your issue might be the result of using FXAA in URP. See the following post and let me know if that helps.
     
  5. Ojee111

    Ojee111

    Joined:
    Jul 13, 2020
    Posts:
    3
    Hi, yes that fixed it for me. Thankyou
     
    Stephan_B likes this.