Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Martin Schultz on March 27, 2014, 05:37:11 AM

Title: FontMaker window does not open (+ fix)
Post by: Martin Schultz on March 27, 2014, 05:37:11 AM
I've recently noticed a couple of times in various projects that at some point, suddenly the font maker or atlas maker don't open anymore. No error in the console, nothing (Unity 4.3.4). I found out that in NGUIMenu.cs in OpenFontMaker() the line looks like this:

EditorWindow.GetWindow<UIFontMaker>(false, "Font Maker", true);

If I change it to this, it works:

UIFontMaker x = EditorWindow.GetWindow<UIFontMaker>(false, "Font Maker", true);
x.Show ();

I cannot clearly repro how the bug appears, but it appears at some point. Restarting Unity or re-importing NGUI does not help. Maybe this helps someone running in the same issue.

- Martin

P.S. Same for UIAtlasMaker
Title: Re: FontMaker window does not open (+ fix)
Post by: ArenMook on March 28, 2014, 12:18:43 AM
I'll make the changes, just in case.
Title: Re: FontMaker window does not open (+ fix)
Post by: Martin Schultz on March 28, 2014, 02:30:50 AM
Thanks!