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.

Bug Overlay Characters = Weird overdraw displayed

Discussion in 'UGUI & TextMesh Pro' started by Benjamin-M, Sep 9, 2020.

  1. Benjamin-M

    Benjamin-M

    Joined:
    Jan 17, 2015
    Posts:
    10
    Hello,
    If I overlay character a sort of overdraw appear on my game view ...
    If I zoom on it on Scene view it progressively disappear...
    Is it a bug ?
    Here's just an example :
    https://imgur.com/a/8W3cOQ0

    Thanks a lot !
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    Is that using TMP?

    What are those objects?

    Can you provide more information on the setup?
     
  3. Benjamin-M

    Benjamin-M

    Joined:
    Jan 17, 2015
    Posts:
    10
    Yes Stephan, it's an Icon font, one character for each color shape.
     
  4. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    If this is an SDF Font Asset, the issue is likely related to the Ratio of Sampling Point Size to Padding being too small.

    Can you post an image of the font asset inspector where we can see the sampling point size and padding values used?
     
  5. Benjamin-M

    Benjamin-M

    Joined:
    Jan 17, 2015
    Posts:
    10
    That's it :)
    My Sample point size was : 2134
    Padding : 5

    I have just change the sample point size to 200 and it's ok, the transparent overdraw is gone !

    Thanks a lot Stephan for your reactivity :)
     
    Stephan_B likes this.