title | description | author | ms.author | ms.date | ms.topic | ms.custom |
---|---|---|---|---|---|---|
Deploy Unity sample to Desktop |
Quickstart that shows how to get the Unity sample onto a desktop PC |
christophermanthei |
chmant |
03/20/2020 |
quickstart |
mode-other |
This quickstart covers how to deploy and run the quickstart sample app for Unity to a desktop PC.
In this quickstart, you learn how to:
[!div class="checklist"]
- Build the quickstart sample app for desktop
- Deploy the sample to a PC
- Run the sample on a PC
In this quickstart, we deploy the sample project from Quickstart: Render a model with Unity.
Make sure your credentials are saved properly with the scene and you can connect to a session from within the Unity editor.
Only flat desktop apps are currently supported on desktop so VR support has to be disabled.
In the standalone build VR support is automatically disabled. No steps are needed here.
- Open Edit > Project Settings...
- Select XR Plugin Management in the menu to the left.
- Select the Universal Windows Platform settings tab.
- Disable OpenXR.
- Open File > Build Settings.
- Change Platform to PC, Mac & Linux Standalone.
- Set Target Platform to Windows.
- Select Switch Platform.
- When pressing Build (or 'Build And Run'), you're asked to select some folder where the .exe should be stored.
- Open File > Build Settings.
- Change Platform to Universal Windows Platform.
- Select Switch Platform.
- When pressing Build (or 'Build And Run'), you're asked to select some folder where the solution should be stored.
Building in standalone mode doesn't produce a Visual Studio solution, but instead a simple .exe file. No second building step is necessary here.
- Open the generated Quickstart.sln with Visual Studio.
- Change the configuration to Release and x86.
- Switch the debugger mode to Local Machine.
- Build the solution.
Run the .exe file, which was produced in the build step.
Start the Debugger in Visual Studio (F5). It automatically deploys the app to the PC.
The sample app should launch and then start a new session. After a while, the session is ready and the remotely rendered model will appear in front of you. If you want to launch the sample a second time later, you can also find it from the Start menu now.
In the next quickstart, we'll take a look at converting a custom model.
[!div class="nextstepaction"] Quickstart: Convert a model for rendering