Author Topic: GUILayoutEditor.GetControlRect() causes compile error  (Read 3113 times)

ChaoticBoredom

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 2
    • View Profile
    • Life Goes On
GUILayoutEditor.GetControlRect() causes compile error
« 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: GUILayoutEditor.GetControlRect() causes compile error
« Reply #1 on: March 17, 2014, 01:35:57 AM »
Thanks, I will add that check when I get back home.

mukarillo

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: GUILayoutEditor.GetControlRect() causes compile error
« Reply #2 on: March 19, 2014, 02:38:15 PM »
I got the same error, there's anyway to solve it?

thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: GUILayoutEditor.GetControlRect() causes compile error
« Reply #3 on: March 20, 2014, 01:20:39 AM »
You can solve it by updating Unity, or by #ifdefing that part out.