Search Unity

How to run more than one instance?

Discussion in 'macOS' started by Tony-Lovell, Dec 18, 2015.

  1. Tony-Lovell

    Tony-Lovell

    Joined:
    Jul 14, 2014
    Posts:
    127
    I unchecked "Force single instance" in Player settings, but I can only run one instance of the .app I build. Subsequent double-clicks on the icon merely focuses the first instance.

    It also completely ignores my settings for "Default is Fullscreen" and "Display Resolution Dialog".

    I am running OS X 10.11.2 and Unity 5.2.3f1
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    That can only affect Windows and Linux; it's not possible to force single instance on OS X, nor is it possible to disable default OS behavior, which is what you describe. The only way to run the same app twice is by using the shell.

    --Eric
     
    Tony-Lovell likes this.
  3. Tony-Lovell

    Tony-Lovell

    Joined:
    Jul 14, 2014
    Posts:
    127
    Thanks, Eric. For the benefit of others, the best pursuit of this idea is not to create copies of the app to run, but to open the app from the terminal as

    open -n <filespec of .app file>, e.g.:

    open -n ~/Documents/MyGame.app

    tone