Dive Right into Making HoloLens Apps
Subscribe to NextReality:
This guide will show you how to make a very basic HoloLens app using Unity, Visual Studio, and the HoloLens Emulator. This is not an exhaustive guide, as it’s just meant to get you in and out as quickly as possible for some hands-on experience before you dive further into learning Unity.
Follow NextReality on:
Follow WonderHowTo on:
assuming you followed the previous tutorials double-click on the holo toolkit folder and the double click assets open unity community loads up to the project select screen click on the new button in the name field type nrn hololens dev 101 now you can use a different name here but it might cause some confusion down the line click create project after a few moments of loading you should see something that looks like this first let's bring a holo toolkit into unity by alt tabbing selecting everything but the examples folder and dragging it to the assets directory in the project view now this process does take a few minutes so I'll just fast forward a little bit sometimes after the process you'll get a few errors in the console you can just hit the Clear button there now it's time to use our newly acquired color toolkit menu go to configure apply project settings this will cause the system to need to reload community now using the same menu hit configure apply scene settings now once again in the whole kit menu hit configure and apply capability settings select all four options microphone spatial perception webcam and Internet client these all turn on specific features on the hololens they won't work without it next up we have to save our scene to do that we need a place to save it so let's create a folder in the assets and create folder call it scenes then go up to file save scenes s click on scenes and type in main hit save now we're going to add some objects to the scene hit game object 3d object cube to create a cube we're going to do the same thing for a sphere 3d objects sphere then 3d object capsule and then one more time for cylinder select cube and change its z-component to six I'll select sphere change it z-component to negative six select capsule changes x-component to six and then change the cylinders y-component to negative six this is creating a cross of objects now it's time to build and compile go to file build settings hit add open scene select target type target device hollow wounds and unity C sharp project get a player select virtual reality support click that box we should be good to go those are all the capabilities there now hit build here we need to create a folder call call it app select that folder hit select folder and now we go through the build process when the build process is done a Windows Explorer window will pop up with our project in it double-click app and then double-click the SLN file with our name on it and now visual studio will load up our project once it's done loading make sure the third section down there then select the solution Explorer is one selected you have two assemblies and then your third section now go to configuration select release processor x86 and select the holland's emulator is our target click the arrow button and watch it go to work eventually the hololens emulator will pop up its screen and start see it going it takes a moment for it to load its operating system because this is emulator after all a minute will deploy here comes the made with unity logo so you know it's a good easy project and Congrats you now have your first working hololens emulator or hololens program if you are following that play make sure and stay tuned to next reality news for all your development news needs and the augmented and mixed reality realms have a great night everybody