Author Topic: FontMaker window does not open (+ fix)  (Read 3432 times)

Martin Schultz

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 37
    • View Profile
    • Decane
FontMaker window does not open (+ fix)
« 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
« Last Edit: March 28, 2014, 02:31:29 AM by Martin Schultz »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: FontMaker window does not open (+ fix)
« Reply #1 on: March 28, 2014, 12:18:43 AM »
I'll make the changes, just in case.

Martin Schultz

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 37
    • View Profile
    • Decane
Re: FontMaker window does not open (+ fix)
« Reply #2 on: March 28, 2014, 02:30:50 AM »
Thanks!