Header Banner
Next Reality Logo
Next Reality
Augmented & Mixed Reality News, Rumors & Dev Guides
nextreality.mark.png
Apple Snap AR Business Google Instagram | Facebook NFT HoloLens Magic Leap Hands-On Smartphone AR The Future of AR Next Reality 30 AR Glossary ARKit Dev 101 What Is AR? Mixed Reality HoloLens Dev 101 Augmented Reality Hololens How-Tos HoloLens v. Magic Leap v. Meta 2 VR v. AR v. MR
Home
HoloLens

HoloLens Dev 102: How to Install & Set Up Vuforia in Unity

Jan 20, 2017 11:09 PM
Mar 29, 2017 11:49 PM
Software interface displaying Vuforia configuration settings.

In this first part of our tutorial series on making physical objects come to life on HoloLens, we are going to set up Vuforia in Unity.

I would plan to keep a Vuforia tab open in your web browser throughout most of this tutorial, and when developing in general, since Vuforia development is tied to their website. As a result, you must have an account, a license key, and you have to use their website tools for ImageTarget database creation.

This tutorial will assume that you have gone through our HoloLens Dev 101 series and know how to set up Unity for HoloLens development as well as the build, compile and deploy processes. If you haven't and are new to this type of development, I highly recommend going through those before trying out Vuforia.

Get a Vuforia License Key

Before we can do anything, we need to create a Vuforia account so we can use the software. It only takes a few minutes, and it's a process you have likely gone through many times on the internet before. After this is accomplished, we will create a license key and a target database.

Head to the Vuforia Developer Portal and sign up for a new account, assuming you do not already have one. With your fresh new account, go to the "License Manager" under the Develop tab, and select the "Add License Key" button.

License Manager Interface with License Key Creation Option

In the Add License Key window, make sure Development is the project type selected, name your app in the App Name field and hit the "Next" button. On the next page, click on the box to confirm you agree to Vuforia's conditions, and then click "Confirm" to finish up.

HoloLens Dev 102: How to Install & Set Up Vuforia in Unity

You now have a license key, which you will need later.

License Manager interface for managing application licenses.

Install Vuforia

First up, create a new Unity project, assuming you haven't already. We will then install Vuforia and configure it. Fortunately, Vuforia recently released a free package to the Asset store which makes this part much easier.

In your Unity project, go to the Window menu up top and open the Asset Store.

User interface of Unity game development software showing various menu options and settings.

Now search for "Vuforia" in the Asset Store.

GameFlow: Visual Scripting Tool for Unity Development

If you have never downloaded Vuforia before, click on the button that says "Download." If you have downloaded it before, like me, the button will say "Import" instead.

Augmented reality starter kit with a user interacting with a smartphone app and holographic objects.

The Import Unity Package window will appear. Leave everything as is and hit the "Import" button.

Volume management interface displaying various volume options and configurations.

Configure Unity to Use Vuforia

Now we need to get our license key ready so we can get Unity set up. In the main menu up top, you should now see an option for Vuforia. Select it, then hit "Configuration."

Vuforia menu options in a software interface.

This will open a window in the Inspector where you will need to put your license key, as you can see below in the blurred out area.

HoloLens Dev 102: How to Install & Set Up Vuforia in Unity
HoloLens Dev 102: How to Install & Set Up Vuforia in Unity
HoloLens Dev 102: How to Install & Set Up Vuforia in Unity
HoloLens Dev 102: How to Install & Set Up Vuforia in Unity

Pull the Vuforia website back up, go to the "License Manager" again, then select your app's name that you created in Step 1. On the page License Key page, a large block of seemingly randomly generated letters, numbers, and symbols will appear—select it, copy it to your clipboard, then paste your key in the correct spot in the Inspector window in Unity.

HoloLens Dev 102: How to Install & Set Up Vuforia in Unity

Still in the Configuration window in the Inspector, under the Digital Eyewear heading, select "Optical See-Through" from the dropdown as the Eyewear Type.

HoloLens Dev 102: How to Install & Set Up Vuforia in Unity

The See Through Config option will appear, and you'll select "HoloLens" from that dropdown.

Digital eyewear configuration options for optical see-through with HoloLens and Vuforia datasets.

And that's all there is to installing and configuring Vuforia in Unity. In the next tutorial, we will build, install, and load our ImageTarget database. Then, we will link the Vuforia ARCamera to our HoloLens camera.

Cover image and screenshots by Jason Odom/NextReality

The next big software update for iPhone is coming sometime in April and will include a Food section in Apple News+, an easy-to-miss new Ambient Music app, Priority Notifications thanks to Apple Intelligence, and updates to apps like Mail, Photos, Podcasts, and Safari. See what else is coming to your iPhone with the iOS 18.4 update.

Related Articles

Comments

No Comments Exist

Be the first, drop a comment!