Search Unity

  1. Click here to see what's on sale for the "Best of Super Sale" on the Asset Store
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

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:
    9
    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:
    5,115
    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:
    9
    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:
    5,115
    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:
    9
    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.
unityunity