Search Unity

Question TextMeshPro Glow Effect

Discussion in 'UGUI & TextMesh Pro' started by Yuyc001, Mar 22, 2023.

  1. Yuyc001

    Yuyc001

    Joined:
    Mar 22, 2023
    Posts:
    4
    Hello,
    I wonder how can I increase the range of the glow effect in TextMeshPro? I'm using the "TMP_SDF-Surface-Mobile.shader" and I tried to modify the range of _GlowOuter but it didn't work.
    Thanks!
     
  2. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    1,087
    You'll need to re-render the fontAsset with the Font Asset Creator, such that you have significantly more padding.

    This padding amount is best thought of in terms of percentage. A standard seems to be around 10% padding, which doesn't leave much space for wide/big glows. So try for a 25% Padding to Font Size:

    64 points text size, 16 units of padding.

    And then see if you can get a good and big enough glow effect around your letters with this.

    Be careful... as you creep up in terms of padding percentage, the rendering can take longer, and can even crash entirely.

    About 33% is the biggest you can reliably go with most fonts... so something like 45 points and padding of 15 units.
     
    Yuyc001 likes this.