Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Ana on April 23, 2014, 03:51:49 PM
-
1. Error
http://www.tasharen.com/forum/index.php?topic=9217.0
2. After fixing the first error, have to fix classes using that method, more specifically, PropertyBinding OnValidate method. Have to surround it with #if REFLECTION_SUPPORT as well
3. DataNode in ConvertValue method, type.IsEnum doesn't exist in Windows Store applications.
Also, I want to know, are there any NGUI features that I can't use on Windows Phone 8 and in Windows Store Apps? Besides, some methods for convenience? Cause after these errors and using REFLECTION_SUPPORT I am worried about going further along the project only to find out some things aren't supported on Windows Store and Windows Phone 8.
-
Wow, IsEnum is also not valid on WSA? That's pretty awful. I don't know why Microsoft decided to ship a different version of .NET that's missing half its features for WP8/WSA. Worse yet, they forced Unity to use their stripped-down .NET library instead of using Mono like on every other non-Windows platform. But that's how it is... Unfortunately when working with a WP8/WSA target platform you are effectively working with a crippled set of tools due to Microsoft.
The Reset() function in PropertyReference should not be commented out. It should look like:
public void Reset ()
{
#if REFLECTION_SUPPORT
mField = null;
mProperty = null;
#endif
}
Then you won't run into #2.
-
Then you won't run into #2.
Yes, that's one way to fix it.
IsEnum is also not valid on WSA? That's pretty awful. I don't know why Microsoft decided to ship a different version of .NET that's missing half its features for WP8/WSA. Worse yet, they forced Unity to use their stripped-down .NET library instead of using Mono like on every other non-Windows platform. But that's how it is... Unfortunately when working with a WP8/WSA target platform you are effectively working with a crippled set of tools due to Microsoft.
I agree with everything you said. >:(
I have no idea why they decided to cripple their devices.
So what NGUI features don't work because of the crippled .NET library? Data binding?
-
Everything to do with reflection -- so crippled EventDelegate (have to use SendMessage), no PropertyBinding, no DataNode.