Support => NGUI 3 Support => Topic started by: cygnus on June 22, 2014, 04:56:08 AM
Title: Unable to build Windows 8 build using NGUI 3.6.5
Post by: cygnus 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?
Title: Re: Unable to build Windows 8 build using NGUI 3.6.5
Post by: ArenMook on June 22, 2014, 11:02:37 PM
If you look inside UIDrawCall.cs line 105, you will notice that sortingOrder is wrapped in
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.