Search Unity

Launch a game using command line, without configuration screen?

Discussion in 'macOS' started by RecursiveFrog, Jul 6, 2020.

  1. RecursiveFrog

    RecursiveFrog

    Joined:
    Mar 7, 2011
    Posts:
    350
    I'd like to launch my built game using Terminal. This game does NOT have a configuration screen on launch when double clicking the game icon.

    When I open it with the terminal, I do it like this:

    open -a myAppName

    Instead of opening the app directly, it opens the Configuration window where you choose the screen resolution a few graphics quality. Then when you click Play, you see an empty default scene.

    How can I open the app like normal, using terminal without seeing this screen?
     
  2. RecursiveFrog

    RecursiveFrog

    Joined:
    Mar 7, 2011
    Posts:
    350
    Different approach seems to work

    Code (CSharp):
    1.  
    2. cd /game/path/game.app/Contents/MacOS
    3.  
    4. ./game; exit;
    5.