Legacy Documentation: Version 5.0
Windows Store Apps: Profiler
Windows Store Apps: Plugins

Windows Store Apps: Command line arguments

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Windows Store Apps don’t accept command line arguments by default, so to pass them you have to call a special function from App.xaml.cs/cpp or App.cs/cpp. For ex., appCallbacks.AddCommandLineArg(“-nolog”); You have to call it before appCallbacks.Initialize() function.

Arguments

  • -nolog - Don’t produce UnityPlayer.log.

  • -force-driver-type-warp - Force DirectX 11.0 WARP device (More info http://msdn.microsoft.com/en-us/library/gg615082.aspx)

  • -force-gfx-direct - Force single threaded rendering.

  • -force-d3d11-no-singlethreaded - Force DirectX 11.0 to be created without D3D11_CREATE_DEVICE_SINGLETHREADED flag.

DirectX feature levels

For further information about DirectX feature levels, see http://msdn.microsoft.com/en-us/library/windows/desktop/ff476876(v=vs.85).aspx)

  • -force-feature-level–9–1 - Force DirectX 11.0 feature level 9.1.

  • -force-feature-level–9–2 - Force DirectX 11.0 feature level 9.2.

  • -force-feature-level–9–3 - Force DirectX 11.0 feature level 9.3.

  • -force-feature-level–10–0 - Force DirectX 11.0 feature level 10.0.

  • -force-feature-level–10–1 - Force DirectX 11.0 feature level 10.1.

  • -force-feature-level–11–0 - Force DirectX 11.0 feature level 11.0.

Windows Store Apps: Profiler
Windows Store Apps: Plugins