Search Unity

Question Update Font Asset Variant glyph positions after main atlas changed?

Discussion in 'UGUI & TextMesh Pro' started by Marconius6, Sep 6, 2022.

  1. Marconius6


    Mar 4, 2021
    Consider this scenario:
    1. I have main Font Asset with a Static atlas. I then have a Font Asset Variant of that, with slightly different settings. Both assets are referenced throughout the project already.
    2. I now decide I'd like to change the atlas, maybe add some new characters. So I Update the atlas on the main asset; this works fine.
    3. Now I go to check the Variant though, and I notice all the glyphs are completely messed up! After some messing around I notice this is because the glyph positions haven't updated, so they're still the old positions for the old atlas. How do I fix this?
    I did find a really convoluted way of doing it involving recreating the Variant, reverting the meta file to keep references AND somehow making sure all the settings are preserved basically by hand, but obviously this is not ideal. Is there a better way to do this?