5argon / ModifyEditorStyle

Change fonts throughout Unity editor
44 stars 7 forks source link

Everything resets on scene change #7

Open 5argon opened 5 years ago

5argon commented 5 years ago

When double click a scene to load it, all fonts are reset to default but the custom size remains. Currently I patch it by adding a callback that calls the Modify again on scene change. I found that those static that stores the generated fonts were reset to null on editor scene load and so it disconnects all reference to this font, falling back to default font.