Author Topic: NGUI 3.5.7 Come with error....... Please fix it.  (Read 2772 times)

devil

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
NGUI 3.5.7 Come with error....... Please fix it.
« 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


Thanks
Devil

ryan1437

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: NGUI 3.5.7 Come with error....... Please fix it.
« Reply #1 on: March 19, 2014, 05:15:21 AM »
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

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: NGUI 3.5.7 Come with error....... Please fix it.
« Reply #2 on: March 19, 2014, 09:39:16 AM »
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. :)


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 3.5.7 Come with error....... Please fix it.
« Reply #3 on: March 20, 2014, 01:29:23 AM »
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.