Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Platform Flag for Windows Phone/Store?

Discussion in 'Windows' started by robc, Jul 24, 2013.

  1. robc

    robc

    Joined:
    Feb 15, 2010
    Posts:
    13
    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
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,940
    For Windows Phone 8 it's UNITY_WP8, for Windows Store Apps it's UNITY_METRO
     
  3. robc

    robc

    Joined:
    Feb 15, 2010
    Posts:
    13
    Excellent. Thanks very much :)

    (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)