Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    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

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

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