Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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,875
    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)