Support => NGUI 3 Support => Topic started by: grofie on May 07, 2014, 02:00:14 AM
Title: Bug: REFLECTION_SUPPORT - Windows Phone
Post by: grofie on May 07, 2014, 02:00:14 AM
Hi Aren,
I just ran into a bug: Buidling on a windows phone fails:
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
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:
publicvoid Reset ()
{
#if REFLECTION_SUPPORT
mField =null;
mProperty =null;
#endif
}
Keep up great work!
Title: Re: Bug: REFLECTION_SUPPORT - Windows Phone
Post by: ArenMook 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.