Search Unity

Question How to make underlay bolder?

Discussion in 'UGUI & TextMesh Pro' started by HedgehogNSK, Aug 4, 2020.

  1. HedgehogNSK

    HedgehogNSK

    Joined:
    Jun 3, 2017
    Posts:
    24
    Hello.
    I need to set very bold underlay for some text as on the next image.
    upload_2020-8-4_15-46-23.png

    But dilate option value of underlay setting of the font material is constrainted by 1.
    upload_2020-8-4_15-55-2.png

    upload_2020-8-4_15-44-48.png

    Could you tell me pls, how to make underlay bolder than it is now?
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    11. How can I increase the range of text effects like dilation, outline, and underlay?
    The range of these effects is determined by the padding used when creating the font atlas. The larger the padding, the larger the effect range. Of course more padding means less room for character data. So there is a trade-off between character quality and effect range. Use the smallest padding that works for you. Note that the padding is specified in pixels, so if you double the texture size you also have to double the padding to keep the same range. See here and here for more details. See the following updated video about Font Asset Creation which provides information about padding and how it affects material properties and their range.
     
    GreenTVlad likes this.