Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: poemdexter on April 22, 2014, 01:24:48 AM

Title: Windows Phone 8 and 3.5.8 compile error
Post by: poemdexter on April 22, 2014, 01:24:48 AM
Just updated to latest and getting compile error when building for Windows Phone.  I have been test with my phone all night until I applied the update.

Assets/NGUI/Scripts/Internal/PropertyReference.cs(167,17): error CS0103: The name `mField' does not exist in the current context
Assets/NGUI/Scripts/Internal/PropertyReference.cs(168,17): error CS0103: The name `mProperty' does not exist in the current context

It appears that the issue might be this:
  1. #if UNITY_EDITOR || (!UNITY_FLASH && !NETFX_CORE && !UNITY_WP8)
  2. #define REFLECTION_SUPPORT
  3. #endif
  4.  
Title: Re: Windows Phone 8 and 3.5.8 compile error
Post by: ArenMook on April 22, 2014, 05:04:38 AM
My bad, change the PropertyReference.Reset function to this:
  1.         public void Reset ()
  2.         {
  3. #if REFLECTION_SUPPORT
  4.                 mField = null;
  5.                 mProperty = null;
  6. #endif
  7.         }
Title: Re: Windows Phone 8 and 3.5.8 compile error
Post by: poemdexter on April 22, 2014, 08:40:59 AM
I figured that was the fix.  Thanks for the quick reply.  Everything is working again.