Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: devil on March 19, 2014, 02:31:52 AM
-
Hi,
I just bought NGUI 3.5.7 and import into a new project, but it prompt me an error. I'm using Unity 4.2.1. Please take a look of the screen shot.
https://drive.google.com/file/d/0B2r3LgFg-p1fY3E1WXZjSGN2S1k/edit?usp=sharing (https://drive.google.com/file/d/0B2r3LgFg-p1fY3E1WXZjSGN2S1k/edit?usp=sharing)
Thanks
Devil
-
Hi ,
I have exactly the same error.
I am using Unity3d 4.2.2 and NGUI 3.5.4r2. I bought NGUI from asset store.Please help.
Thanks
Ryan
-
Seems like EditorGUILayout.GetControlRect was only made public in unity 4.3 or something like that.
Could you try as a quick test to try a updated Unity? ArenMook is at GDC right now, so he might not fix it immediately. Worst case, go into
NGUI/Scripts/Editor/UILabelInspector.cs:195
and define the rect as something fixed right there - that should quick fix it. :)
-
New NGUI releases always support only the latest Unity versions officially -- latest Unity is currently 4.3.4 in Unity 4 cycle, and Unity 3.5.7 in Unity 3 cycle.
I can't test older versions of Unity as I don't have every single version of Unity installed (and it wouldn't make much sense to do that anyway).
I will add an #ifdef around this tomorrow, but keep what I said in mind for the future, as this is bound to happen again.
Rule of thumb: the latest version of NGUI requires the latest version of Unity.