Author Topic: Windows Phone 8 and 3.5.8 compile error  (Read 6530 times)

poemdexter

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Windows Phone 8 and 3.5.8 compile error
« 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.  

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Windows Phone 8 and 3.5.8 compile error
« Reply #1 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.         }

poemdexter

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Windows Phone 8 and 3.5.8 compile error
« Reply #2 on: April 22, 2014, 08:40:59 AM »
I figured that was the fix.  Thanks for the quick reply.  Everything is working again.