Unity Virtual Reality Projects
上QQ阅读APP看书,第一时间看更新

UWP build

Now, you can build your game as a separate executable app using the following steps:

  1. From the main menu bar, navigate to File | Build Settings...
  2. If the current scene is not already in the Scenes to Build list, press Add Open Scenes
  1. On the right side of the dialog are options:
    • Target Device: PC
    • Build Type: D3D
    • SDK: Latest Installed (for example, 10.0.16299.0)
  2. Click on Build and set its name
  3. I like to keep my builds in a subdirectory named Build; create one if you want to
  4. Click on Save

Note that the Mixed Reality ToolKit provides shortcuts to these and other settings and services, as shown:

Now open the project in Visual Studio:

  1. An easy way is to navigate to the Build folder in File Explorer and look for the .sln file for the project (SLN is the Microsoft VS solution file). Double-click it to open the project in Visual Studio.
  2. Choose the solution configuration: Debug, Master or Release.
  3. Set the target to x64.
  4. Press Play Local Machine to build the solution.

For more information on Unity support for Windows Mixed Reality, see https://github.com/Microsoft/MixedRealityToolkit-Unity, including the link to the Getting Started page.