Search Unity

Incorrect command line arguments running three desktop application instances in a bat file

Discussion in 'Editor & General Support' started by gambr, Jan 15, 2019.

  1. gambr

    gambr

    Joined:
    Oct 13, 2017
    Posts:
    109
    Dear All,
    I need to run three application instances from a bat file. The problem is that different command line arguments (unity layer arguments) are not handled correctly. Here is an example of the bat file content.

    START myunityapp.exe -screen-fullscreen 1 -screen-width 1920 -screen-height 1080
    START myunityapp.exe -screen-fullscreen 0 -screen-width 1280 -screen-height 720
    START myunityapp.exe -screen-fullscreen 0 -screen-width 1280 -screen-height 720

    The problem is that sometimes it works fine but sometimes two instances are fullscreen, sometimes all instances are fullscreen.

    Any idea?

    Regards,
    Gianni
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
  3. gambr

    gambr

    Joined:
    Oct 13, 2017
    Posts:
    109
  4. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    If you've filed the bug they would know.
     
  5. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,448
    maybe not exactly related but
    i noticed that the old way of running fullscreen/borderless window from command line didnt seem to work..(didnt investigate further if its some different player settings perhaps)

    but pressing ctrl+enter on that windowed screen makes it fullscreen. (and next time it defaults to full screen)