From the course: AR Development Techniques 03: Recognition and Tracking

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

AR book tracking, part 2

AR book tracking, part 2

From the course: AR Development Techniques 03: Recognition and Tracking

Start my 1-month free trial

AR book tracking, part 2

- [Instructor] When we point our phone to a particular book cover image, we know which book is currently being tracked, but our app doesn't know that. That's why it overlays this $20 price text for each book cover that is in the reference image library. In this video, we are going to write some code, to find out exactly which image is being tracked and set a different static price for each book cover image. I'll create a new script, C# script and I'll name this , detected image. I'll add the script to the AR session original object, open it. First, we need to import AR foundation, using UnityEngine.XR.ARFoundation. Inside the script, we need to get the reference to the AR track image manager script so that we can subscribe to the image change event so that we know which image is being tracked. So I'll create an AR tracked image manager variable, and I'll name this AR tracked image manager.…

Contents