Search Unity

Flash RuntimePlatform check?

Discussion in 'Flash' started by shadowfork, Jan 12, 2012.

  1. shadowfork

    shadowfork

    Joined:
    Jan 8, 2010
    Posts:
    167
    Hello!

    Currently I have my game checking on iOS and Android platform and I would like to add a check if it's running in Flash.

    Question: Is there an enum item for this when I check Application.platform?

    I only see OSXwebplayer and WindowsWebPlayer... will those work?

    Thanks!
     
  2. Lucas Meijer_old

    Lucas Meijer_old

    Joined:
    Apr 5, 2008
    Posts:
    436
    I think it was not yet implemented in the public preview build. You can use this instead:

    #if UNITY_FLASH
    //somethingsomething
    #endif