Note: The HoloLens platform is still in development and work on the deployment and editor workflows is ongoing. This page is subject to change.
Building for UWP requires Visual Studio 2015 with the prerequisites listed on the Supported Platforms page.
Tip: You can build the uwp32 engine for HoloLens with the console command ruby make.rb -p hololens.
When working on HoloLens you can do one of the following:
A WIP project for HoloLens testing purposes can be found in the Online Projects tab in the Project Manager.
Note: This project is available only for source code customers.
Important: You must enable experimental editor features (File > Settings > Editor > Settings and turn on Enable experimental editor features in the Property Editor) before you can compile data for UWP/HoloLens in the editor. For more information, see About Experimental Features.
To compile and bundle the data:
If you want to create an app package with data you need to add the compiled and bundled data to Visual Studio:
Tip: You can run it with --no-build to only generate the solution files.
Alternatively you can add the files to Visual Studio manually:
There are multiple ways you can deploy through Visual Studio:
It may take a few minutes for the project to start appropriately on the device.
Note: When deploying to a HoloLens headset, the data already on the device is not always cleaned up properly. It´s a good idea to enable "Remove Non-Layout Files from Device" on the project debug properties page in Visual Studio if you have any issues.
You can create a complete appx package in Visual Studio that you can install through the Device Portal. This allows you to share an app package with someone who doesn't have access to Visual Studio.
If you want to create a package with data you need to first follow the steps in the Add project data to package section listed above.
Create an app package with the "Create App Packages" wizard in Visual Studio. You can follow the instructions under the Create an app package title on this page: Packaging UWP apps
Select "No" when asked if you want to build a package for uploading to the Windows Store. Skip the validation step at the end of the wizard.
When the Package is generated you can install it through the HoloLens Device Portal. See this page for information on how to use the Device Portal: Using the Windows Device Portal
For more background information, see Connect to a remote device.
To connect to an HoloLens device:
Deploy the engine to the device without project data using the steps detailed above.
Start the engine on the device.
When the app starts up, it shows the following information while it waits for an incoming connection from the Stingray Editor:
In the Stingray Editor, use the Connections panel (Window > Deploy and Connect > Connections) to set up the connection to the IP address for the device, then run the project.
For details, see Using the Connections panel.
Note: The engine app on the device must be in this waiting state in order for the Stingray Editor to initiate a connection. Each time you want to run your project or mirror your viewport, you have to close and restart the engine on the device.
Close the message dialog window on the device manually when connecting to the editor. The window does not close automatically, and while it is visible it hides the 3D content rendered by the engine.
The Stingray console output is available on the Logging page in the Device Portal under the Microsoft-Windows-Diagnostics-LoggingChannel provider.
Useful information for debugging is available from various different providers. We have found useful information in the Microsoft-Windows-WindowsErrorReporting, -ProcessStateManager and -ProcessExitMonitor providers.