Nerd For Tech
Published in

Nerd For Tech

AR in Unity with Vuforia

Objective: Install Vuforia in Unity.

It’s easy to add AR (augmented reality) to our Unity projects! We’ll begin by downloading the Vuforia Engine Unity package and dropping it into our project (https://developer.vuforia.com/downloads/sdk).

Next we’ll create a Vuforia Developer account (it’s free!), then go to the License Manager and create a new license (https://developer.vuforia.com/vui/develop/licenses). I called mine “ARFun”.

When we click on the license we’ll be given our License Key. We’ll need this long string of text in just a moment.

Back in the Unity Hierarchy, we’ll create a new Vuforia AR Camera. We can disable any other cameras in the scene.

In the AR Camera’s Vuforia Behaviour component, we’ll click Open Vuforia Engine configuration.

The Vuforia Configuration window will open in the Inspector. We can paste our License Key here.

Back in our Hierarchy, we’ll create a new Image Target.

In the image target’s Image Target Behaviour component, we’ll change Type to From Image, give our image a name, and drag our image into the Image box.

In the Hierarchy, we can attach game objects as children under the image target. In my case, I attached an animated skeleton to the image target. When the AR camera recognizes the image in the real world, it will render the attached children in relation to the real-world image!

--

--

--

NFT is an Educational Media House. Our mission is to bring the invaluable knowledge and experiences of experts from all over the world to the novice. To know more about us, visit https://www.nerdfortech.org/.

Recommended from Medium

How to convert ODP to PDF in C# .Net Framework

Threads in Java

Creating an Elevator in Unity

MS Dynamics CRM to Insightly: Effortless Flight to New Business Headway — Data2CRM

Utilizing API’s within Power BI

How to convert Legacy XLS (97–03) Spreadsheet to PDF in Python

Adobe AEM integration with Magento on Mac (without MAMP) Part-4

Cascading style sheets In Web Designing

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ryan Sweigart

Ryan Sweigart

An independent Unity Developer.

More from Medium

Ethical Challenges in AR / VR

P3: Creating a Gritty Office Den

VR Development — Day #2

Create a Google Maps Live View-like application with Unity3D in under 10 minutes!