adapter -N command line not working with config dialogue.

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

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.

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.

Hi Arowx, i am on the same track, have you found the exact solution?

It seems to work fine in DX9 mode but fail in DX11 mode.

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!

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.