I came across the method ClearFontAssetData() today, but the documentation warns that it might be changed to internal in the future. Is it recommended that we avoid using it? If so, is there an alternative?
My FontAssets for Chinese/Japanese are set to dynamic, and they each end up generating around 5 atlases in order to fit all the required glyphs. They’re not set up as Addressables right now, so they remain in memory even if the player changes to another language (they’re referenced in a serialized field somewhere).
I was thinking that I could clear the extra atlases when the player changes language, and allow them to dynamically regenerate if the player switches back to Chinese. Having said that, I’m at the end of this project, and I can’t really afford to change the game’s architecture or risk breaking anything. Is there an easy/reasonable way to do this, or is it a non-standard use case that would require some kind of hack?