Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unity 2018 Augmented Reality Projects

You're reading from   Unity 2018 Augmented Reality Projects Build four immersive and fun AR applications using ARKit, ARCore, and Vuforia

Arrow left icon
Product type Paperback
Published in Jul 2018
Publisher Packt
ISBN-13 9781788838764
Length 358 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Jesse Glover Jesse Glover
Author Profile Icon Jesse Glover
Jesse Glover
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. What AR is and How to Get Set up FREE CHAPTER 2. GIS Fundamentals - The Power of Mapping 3. Censored - Various Sensor Data and Plugins 4. The Sound of Flowery Prose 5. Picture Puzzle - The AR Experience 6. Fitness for Fun - Tourism and Random Walking 7. Snap it! Adding Filters to Pictures 8. To the HoloLens and Beyond 9. Other Books You May Enjoy

Code implementation details

Obviously, the most important part of any project is actually to implement what we want to accomplish. We want this project to play a literary quote from a list of audio samples automatically. To do this, we need an audio source and audio clips. We also want this project to take advantage of ARKit to run, so we need to write a C# class that utilizes features from the ARKit plugin that is exposed from the Objective-C and C++ libraries.

Let’s open up the ARHitCube class, fill in the details, and explain what is happening at the same time. I should note that very similar code is already provided in the script file called UnityARHitTestExample; I created this script to be able to show only what is needed and to be able to explain the workflow/thoughts necessary for creating the functionality we need:

using System;
using System.Collections.Generic...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image