Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: derkoi on December 01, 2014, 03:10:25 PM

Title: Completely reset NGUI?
Post by: derkoi on December 01, 2014, 03:10:25 PM
I'm using Unity 5 beta with the latest NGUI and I opened the font maker to make a font. I'm not sure what exactly went wrong but I think I dragged the wrong kind of font file in to one of the slots.

Anyway, I got a bunch of repeated errors:

Quote
Failed to load 'Assets/NGUI/Editor/FreeType.dll', expected 64 bit architecture (IMAGE_FILE_MACHINE_AMD64), but was 0x014c.
UIFontMaker:OnGUI() (at Assets/NGUI/Scripts/Editor/UIFontMaker.cs:548)
UIFontMaker:OnGUI() (at Assets/NGUI/Scripts/Editor/UIFontMaker.cs:211)
UnityEditor.DockArea:OnGUI()

DllNotFoundException: Assets/NGUI/Editor/FreeType.dll
FreeType.GetFaces (UnityEngine.Font font) (at Assets/NGUI/Scripts/Editor/FreeType.cs:418)
UIFontMaker.OnGUI () (at Assets/NGUI/Scripts/Editor/UIFontMaker.cs:211)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

and the font maker window went blank. I can't do anything with it apart from close it. I tried deleting NGUI from my project & reinstalling it but it still keeps the memory from the last use. So I'm wondering if there's a way to completely refresh NGUI or assets in general so the font maker window works again.

Thanks
Title: Re: Completely reset NGUI?
Post by: ArenMook on December 02, 2014, 11:39:44 AM
Unity 5 is 64-bit while the freetype DLL used by NGUI is 32 bit. You need to use a 64-bit version of it.

Cory Golden recently pointed this out to me and suggested a link where to get the 64-bit version: http://www.tasharen.com/ngui/FreeType64.zip

Replace your FreeType.dll with that one.