Windows 10 UWP + 5.2 - DEFINES

Am trying to use platform defines - 5.2.0f3 and VS2015 Community RTM + all patches. Can’t seem to find a #if UNITY_xxx define that works. UNITY_WSA doesn’t work either. Any ideas?

#if UNITY_WSA results in greyed out code.

Had previously used UNITY_METRO_8_1 on Windows 8.1.

UNITY_METRO, UNITY_WSA, UNITY_WSA_10_0, UNITY_WINRT, UNITY_WINRT_10_0 should all be defined. Could you actually confirm that the code is not executed? Might it be an intellisense issue?

Yes, it is an InelliSense problem with VS2015. In MonoDevelop UNITY_WSA and UNITY_WSA_10_0 looks fine. BTW the following doco is out of date.

The project won’t build because the following is Unresolved - Worked fine on Win 8.1…

using System.Threading.Tasks;

1 Like

Hmm, I’m noticing that UNITY_WINRT and UNITY_WINRT_10_0 don’t seem to be firing off for Windows Store Universal builds for desktop? Still trying to verify this is the case, but I did a test and my breakpoints only hit UNITY_METRO, UNITY_WSA, and UNITY_WSA_10_0.