Author Topic: Bug: REFLECTION_SUPPORT - Windows Phone  (Read 2500 times)

grofie

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 1
  • Posts: 17
    • View Profile
Bug: REFLECTION_SUPPORT - Windows Phone
« on: May 07, 2014, 02:00:14 AM »
Hi Aren,

I just ran into a bug: Buidling on a windows phone fails:

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

Looks like windows phones don't support reflections. Most of the time, your scripts handle that just fine, but it looks like you forget some code. The function Reset in the class PropertyReference (line 165) should look like that, then it compiles again:
  1.         public void Reset ()
  2.         {
  3.                 #if REFLECTION_SUPPORT
  4.                 mField = null;
  5.                 mProperty = null;
  6.                 #endif
  7.         }
  8.  

Keep up great work!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Bug: REFLECTION_SUPPORT - Windows Phone
« Reply #1 on: May 08, 2014, 12:41:00 AM »
Yup, this has been posted before with the same exact fix. It was fixed in the Pro version the day after 3.5.8, so it will be a part of 3.5.9.