Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

adapter -N command line not working with config dialogue.

Discussion in 'Editor & General Support' started by Arowx, Jul 10, 2013.

  1. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    Hi can you help?

    I have been developing a game for the Oculus Rift and found a great feature in Unity, where you can select the monitor or "adapter" in the command line using "unityGame.exe -adapter N" where N denotes the monitor, but this does not appear to work when used with Unity's own pre-launch config dialogue?

    Regards

    Arowx
     
  2. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    OK just got Unity 4.2 and tried to disable the config dialogue to re-enable the adapter -N command line parameter but it does not appear to work.

    This features is ideal for working on games for the Oculus Rift so any help or guidance would be greatly appreciated, thank you.
     
  3. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    Hi Unity I have raised this as a bug [Case 553515], and then had a play with an empty project and I think I have found the problem, when you build to DX11 the adapter -N feature does not work as advertised.
     
  4. Arunraj

    Arunraj

    Joined:
    Jul 4, 2012
    Posts:
    21
    Hi Arowx, i am on the same track, have you found the exact solution?
     
  5. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    It seems to work fine in DX9 mode but fail in DX11 mode.
     
  6. Gamgie

    Gamgie

    Joined:
    Jun 7, 2012
    Posts:
    7
    Hi everyone !

    so you add -force-d3d9 to your command line to get it work ?

    I have the same problem, my command line is
    "MyAppexe" -adapter 1 -force-d3d9 -popupwindow -screen-width 1920 -screen-height 1080

    And I can't get my app on my second screen. Do you have any idea of what I'm doing wrong

    Thanks for help!
     
  7. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    I found that it works when you build to dx9 but not when you build to dx11, didn't try the command line option for dx9 or opengl.