Search Unity

Question How do I determine wether I'm running on Intel or Silicon?

Discussion in 'macOS' started by jackjansen, Feb 22, 2023.

  1. jackjansen

    jackjansen

    Joined:
    Apr 4, 2019
    Posts:
    22
    I need to determine whether I am currently running on Silicon or on Intel (or under Rosetta). This is both for the editor and a standalone built player.

    I need this because I need to load an external native library, which the user has to install through Homebrew, and this library will be somewhere in
    /usr/local
    on an intel machine (or when running under Rosetta) and somewhere in
    /opt/homebrew
    when running in native Silicon mode.
     
  2. SF_FrankvHoof

    SF_FrankvHoof

    Joined:
    Apr 1, 2022
    Posts:
    780
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,674