Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

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:
    137
    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:
    338
    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:
    137
    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:
    280
  5. amjaliks

    amjaliks

    Joined:
    Jul 11, 2015
    Posts:
    137
    @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,275
  7. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    7,517
    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:
    18
    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.
     
    amjaliks, creat327 and Moonjump like this.
unityunity