Version: 2022.3
AppCallbacks class reference
Association launching for UWP

Command line arguments for UWP

You can launch Unity Players from the command line and pass in arguments to change how the Player executes. Universal Windows Platform (UWP) apps don’t accept command line arguments by default, so you have to pass them to an AppCallbacks constructor in App.xaml.cpp or App.cpp to specify them.

This code example demonstrates how to do this:

m_AppCallbacks = 
    ref new AppCallbacks
    (
        ref new Platform::Array<Platform::String\^> 
        {
            L"-force-gfx-direct" 
        }
    );

For more information on command line arguments for UWP, refer to Unity Standalone Player command line arguments.

AppCallbacks class reference
Association launching for UWP
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961