From the course: AR Development Techniques 02: Lighting and Physics
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
FocusSquare to place on plane
From the course: AR Development Techniques 02: Lighting and Physics
FocusSquare to place on plane
- [Instructor] In the last couple of videos, we saw how to place a 3D virtual object on a detected plane when the user taps on the screen. Now that works fine, but what if there was a more precise and better way to do things? Well, there is. We can set up something like this, where a pointer is displayed on the detected plane, and the user can tap the button to place the object at the exact location where the pointer is. To demonstrate this, we will create an AR food menu app, where you can place multiple food items on the table with the help of a pointer. And after you have placed it, you can hide the UI components and the pointer, using the UI toggle button. So let's go to Unity editor and implement this. First of all, let's clean the project window a bit, or it will get messy later on. So let's arrange everything in folders. Let's create a folder for prefabs, create, folder, prefabs, and I'll drop all the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
(Locked)
Plane detection overview1m
-
(Locked)
ARSession and ARSessionOrigin2m 10s
-
Point clouds and plane detection3m 40s
-
(Locked)
Deploying the app on your devices2m 50s
-
(Locked)
Tap on screen to place on plane: Part 13m 8s
-
Tap on screen to place on plane: Part 24m 28s
-
(Locked)
Tap on screen to place on plane: Part 34m
-
(Locked)
Hiding plane visualizers2m 8s
-
(Locked)
FocusSquare to place on plane13m 40s
-
(Locked)
Resetting and reloading the ARSession2m 43s
-
(Locked)
-
-
-
-
-