Hey all,
I viewed the Editor.log file for my game (the one that shows all the assets used in your game and their corresponding file sizes) so I could see what assets are increasing my game size the most.
I could see quite a few font files. I tried to stick to two different fonts in the game so I am not sure where the other fonts are coming from.
From what I can tell, even if you include a font somewhere within your assets folder, if you don’t use that font anywhere, it doesn’t get included in the final build.
Yet, I can see this font being loaded into my build :
1.0 mb 0.6% Assets/ThirdPartyAssets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF.asset
As far as I know, I am not using that font. Is there a special way to search within the Unity IDE to locate what textfield is using that font?
I’d like to decrease the size of my game.
Thanks for any advice you can give!
You probably are using that font. It’s the default. So, somewhere you have a text object that was just thrown in for debugging or something; maybe it’s not even enabled, but it’s still there, and you never changed the font on it, so it’s still using LiberationSans.
You could of course simply delete that asset from your project. If the text using it really isn’t visible, then there’s no harm. And if you suddenly notice some missing text, well, that’s what was using it. 
Alternatively, if you store all your metafiles as text (which I recommend anyway), you may be able to search the project for LiberationSans (or the GUID of that asset) using a command-line or multi-file text editor.
Hmm, that’s a good idea. I think I’ll just remove all fonts I don’t plan on using (including the default font) from my assets folder and then look for text in my game that it not longer appearing. 
1 Like