Platform Flag for Windows Phone/Store?

Hey All,

I’ve started poking about with porting my game over to Windows Phone/Store - and one of the initial hurdles I’m hitting up against is what I should be using for the flag on when I want to have code compiled for either of those.

I’ve checked both the local copy of the documentation which was installed with Unity, and the website and I’ve not seen anything specific for them (and I don’t think that UNITY_STANDALONE_WIN feels right in these circumstances, as I also am supporting classic Desktop Windows environments with my game).

Is it the case that for these platforms that I need to do another check instead? Just a little concerned that there’s a flag for Blackberry, but not for these.

  • R

For Windows Phone 8 it’s UNITY_WP8, for Windows Store Apps it’s UNITY_METRO

Excellent. Thanks very much :slight_smile:

(Would it be worth making this thread sticky so that it’s available until it’s in the docs. Just to make sure that no-one else asks it again)