Search Unity

Question Dynamic SDF System With Prefilled Atlas

Discussion in 'UGUI & TextMesh Pro' started by Grazer2, May 24, 2023.

  1. Grazer2

    Grazer2

    Joined:
    Jun 20, 2011
    Posts:
    86
    Hello,

    I've been watching this video on the dynamic SDF System:


    It seems that the feature works for me when I create a font asset by right clicking on a font and creating an empty atlas that way. The feature however does not work if I create a font asset using the "Window->TextMeshPro->Font Asset Creator" tool. Ideally I would like to have my asset prefilled (as also mentioned in the video), but when I do that, new characters will not be added automatically to the atlas. The font assets created with both methods look identical to me in the inspector. Any ideas what I am missing would be greatly appreciated.

    Regards
     
  2. Grazer2

    Grazer2

    Joined:
    Jun 20, 2011
    Posts:
    86
    I got it working now. It seems that the pre-generated Atlas was already "full". I thus had to make sure that "Multi Atlas Textures" checkbox was set to true. I also lowered the Sampling Point Size which was automatically set to 325 to 90.
     
  3. Grazer2

    Grazer2

    Joined:
    Jun 20, 2011
    Posts:
    86
    Potential bug: The Apply-button does not show up when changing the Atlas Population Mode in the inspector for a font asset. And the change doesn't seem to show up in the .asset file either.