Author Topic: Unable to build Windows 8 build using NGUI 3.6.5  (Read 3563 times)

cygnus

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Unable to build Windows 8 build using NGUI 3.6.5
« on: June 22, 2014, 04:56:08 AM »
When building a project using NGUI 3.6.5 targetting the Windows Store build we get the following error:

'UIDrawCall' does not contain a definition for 'sortingOrder' and no extension method 'sortingOrder' accepting a first argument of type 'UIDrawCall' could be found (are you missing a using directive or an assembly reference?)

This occurs at line 1405 within UIPanel.cs

Any idea what needs to be done to get this back rolling?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unable to build Windows 8 build using NGUI 3.6.5
« Reply #1 on: June 22, 2014, 11:02:37 PM »
If you look inside UIDrawCall.cs line 105, you will notice that sortingOrder is wrapped in
  1. #if !UNITY_3_5 && !UNITY_4_0 && !UNITY_4_1 && !UNITY_4_2
So for some reason one of the defines here is valid for you -- possibly due to generation of the solution in an older version of Unity, or due to a bug in Unity. Either way, figure out which define it is (such as UNITY_4_2) and get rid of it from your solution's list of defines.