Version: Unity 6 Preview (6000.0)
Language : English
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 PlatformAn IAP feature that supports Microsoft’s In App Purchase simulator, which allows you to test IAP purchase flows on devices before publishing your application. More info
See in Glossary
(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