Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: ChaoticBoredom on March 16, 2014, 09:05:19 PM

Title: GUILayoutEditor.GetControlRect() causes compile error
Post by: ChaoticBoredom on March 16, 2014, 09:05:19 PM
Just updated our version of NGUI to 3.5.4, and got a single compile error. UILabelInspector, line 195.

It appears that GUILayoutEditor.GetControlRect() is not exposed in Unity 4.2.

I've encircled this w/ #if/#endif statements in our code, but it would probably be a good idea to prevent it in the source.

We won't be upgrading Unity because we're too close to shipping, but the NGUI updates fixed a lot of problems for us.

Thanks
Title: Re: GUILayoutEditor.GetControlRect() causes compile error
Post by: ArenMook on March 17, 2014, 01:35:57 AM
Thanks, I will add that check when I get back home.
Title: Re: GUILayoutEditor.GetControlRect() causes compile error
Post by: mukarillo on March 19, 2014, 02:38:15 PM
I got the same error, there's anyway to solve it?

thanks.
Title: Re: GUILayoutEditor.GetControlRect() causes compile error
Post by: ArenMook on March 20, 2014, 01:20:39 AM
You can solve it by updating Unity, or by #ifdefing that part out.