Search Unity

Is there a way to detect iOS game is running on M1?

Discussion in 'iOS and tvOS' started by amjaliks, Nov 25, 2020.

  1. amjaliks

    amjaliks

    Joined:
    Jul 11, 2015
    Posts:
    159
    Is it possible detect iOS game is running on M1 Mac?
    I would like to show instructions how to control the game with keyboard, if the game is running on Mac.
     
  2. Neonlyte

    Neonlyte

    Joined:
    Oct 17, 2013
    Posts:
    516
    You may be better off making a Mac version, or supporting keyboard inputs on iPad. M1 Mac basically runs the iOS App in iPad flavor if no Mac Catalyst flavor is provided, which Unity has not supported yet.
     
  3. amjaliks

    amjaliks

    Joined:
    Jul 11, 2015
    Posts:
    159
    The game already supports keyboard inputs. And I want let players know this by showing instructions for keyboard controls (instead of on-screen (touch) controls).
     
    Last edited: Nov 25, 2020
  4. kaarloew

    kaarloew

    Joined:
    Nov 1, 2018
    Posts:
    360
  5. amjaliks

    amjaliks

    Joined:
    Jul 11, 2015
    Posts:
    159
    @kaarloew, thank you!
    My googling game was too weak. I couldn't find it myself.
     
    aihodge likes this.
  6. creat327

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,756
  7. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,796
    That would require Unity to support it, so no. You can code it yourself.
     
  8. Petras-Unity

    Petras-Unity

    Unity Technologies

    Joined:
    Oct 7, 2020
    Posts:
    25
    It is now possible to detect if iOS app is running on Mac using Device.iosAppOnMac. Api is available in 2021.1, 2019.4. This api will be available in 2020.2 in near future.
     
    almagames, anatolyV, amjaliks and 2 others like this.