Author Topic: compilation error  (Read 3277 times)

indeisoft

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
compilation error
« on: November 20, 2014, 09:43:04 AM »
hey
I just bought the NGUI, I have some questions, but first thing is I get compilation errors, I don't know if it's NGUI issue but anyway all the errors are from  compiler directives :

#if UNITY_4_3 || UNITY_4_5 || UNITY_4_6
               b2d.center = bcCenter;
#else
               b2d.offset = bcCenter;
#endif
               b2d.size = bcSize;

I have the latest Unity version 4.5.5 , I get the error on the else part...

Thank you
Tsahi

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: compilation error
« Reply #1 on: November 20, 2014, 08:43:09 PM »
That doesn't make sense to me. Unity 4.5 is in that directive, meaning you default to the first line, not the second. I use 4.5.5f1 myself.

indeisoft

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: compilation error
« Reply #2 on: November 21, 2014, 06:19:54 AM »
I know...well that is what happens anyway...am I missing something?

indeisoft

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: compilation error
« Reply #3 on: November 21, 2014, 11:44:06 AM »
Well finally, I found the problem - there are missing define symbols in the editor assembly