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

FocusSquare to place on plane

From the course: AR Development Techniques 02: Lighting and Physics

Start my 1-month free trial

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…

Contents