Jimmy Engström



Setting up a HoloLens Unity project

2016-07-27 10:00:00 +0000

You can create apps for HoloLens by using UWP (ordinary 2D apps), you can also make 3D apps by using tools like Unity.
This post will cover what you need to do to setup a Unity project to work on HoloLens.
I have had the opportunity to work with HoloLens for a while now and I should share some of my tips and tricks.

The Tools

You need Unity installed on your computer, follow the instructions here:
While you're at it, I would also recommend installing Visual Studio 2015 and the HoloLens emulator (not needed for this blog post).

Setting things up

Let's take a look at what you need to do to set everything up.
I will show a really simple way to do that.

Create new project

Start with creating a new Unity project.
Name it something, in my case I named it DemoProject
Unity will now create our world.


Microsoft also provides HoloToolkit, a library containing a lot of useful components you can use when building HoloLens apps, you also get a couple of menu items that automatically make the changes you need.
You can download it from (or from github).
This will show a list of files to be imported, just click Import and the installation will take care of everything,
Now you should see a menu item called HoloToolkit.
First delete the camera and then add the Camera.prefab in the HoloToolkit/Utilities/Prefabs folder, this camera is customized for holographic development.
In the HoloLens emulator you can move around using the aswd keys.
To enable the same behavior in the Unity player you can add ManualCameraControl.cs (HoloToolkit/Utilities/Scripts) to your camera.
To fix the scene (set the correct position of the camera amongst other things) click "Apply HoloLens Scene Settings".
Now save your scene and place it in a folder called Scenes (or whatever location you prefer).
Now click the "Apply HoloLens Project Settings" it will make sure the near plane is set to a good value and make sure Holographic is available in the project.
You will get a couple of questions you can just select yes and then restart the project (Unity will do that automatically).
Now you are all done, and it's time to create your holograms, but that will be the subject of another blog post.
If you want to know in detail what changes these scripts made , here is an excellent blog post .
You can also read more here


2016-07-10 17:00:00 +0000

Microsoft has really done some awesome stuff with the HoloLens and the tooling for developing for the HoloLens.
I've been developing for the HoloLens for a while now and one of the first thing I do when starting up a new project is making sure my HoloToolkit GIT clone is up to date and then copying the files to the right place.
I wanted to make this process a little bit easier so I created an Azure script that automatically downloads the source and makes a Unity package out of it, every time something is checked in into the HoloToolkit-Unity repo.

You can get the HoloToolkit as a UnityPackage here:

Enjoy =)