Build, run and test the initial setup

When our basic setup for the project is done, we can just build and run the application to test whether everything is working fine. In the earlier project development exercise chapter, we already talked about setting up the development environment and running a holographic app. Let's follow the same steps here.

From the main menu, go to File | Build Settings and verify all the build settings:

  • Platform | Windows Store
  • SDK | Universal 10
  • Target Device | HoloLens
  • UWP Build Type | D3D
  • Build and Run on | Local Machine

For a local development reference, you can also check the Unity C# Projects and Development Build checkbox. Also, make sure that you add your main scene by clicking on the Add Open Scenes button.

In the Build Settings window, click on Build.

  1. Create a New Folder named RemoteMonitoringApp.
  2. Single Click on the RemoteMonitoringApp folder.
  3. Press Select Folder.

From here, Unity will take it forward and perform the project builds and will create the solution for Visual Studio. When Unity is done, a File Explorer window will appear:

  1. Navigate to the RemoteMonitoringApp folder and open the Visual Studio Solution created by Unity.
  2. In Visual Studio, change the build Platform target from ARM to X86.
  3. Select HoloLens Emulator from the list of run options.
  4. From the main menu, click on Debug | Start Without debugging or just press Ctrl + F5.

Wait till the HoloLens Emulator starts and your application launches. Once the App is launched, you should be able to see the 3D Model of your hologram, as shown in the following image. If you are running it using the HoloLens device, you can experience a 3D building model and walk around it. Even if you see some of the sensor indicators in the building, they are not connected to the backend as of now, and at this point in time they are just part of the 3D building base model.

3D building
You are also now familiar with different deployment mechanisms, and you have seen how to use them during the previous project; you are free to choose any of the processes for deployment and test it out.

All our initial setup is tested and ready. Let's start digging into a more scripting part of the holographic app.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.124.21