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

Unlock the full course today

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

Hiding plane visualizers

Hiding plane visualizers

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

Start my 1-month free trial

Hiding plane visualizers

- [Instructor] In this video, we are going to see how to hide the plain visualizers after we have placed the virtual cube on the detected surface. First of all, let's disable the AR Point Cloud Manager's script. This was just to show you how the app recognizes the unique environmental features. We are more interested in the plane visualizers. Now, as soon as we place the object, we want the planes to disappear. To do that, we have to do two things. First, we have to hide all the plane visualizers that the app has added till now. And second, we have to disable the AR Plane Manager's script so that no new planes are added in the scene. So let's write the code for this. First of all, we'll write the code, remove all the plane visualizers that are added till now, so I'll write a for loop for that. Since there can be many plane visualizers in the scene, for each lean in AR session origin.git competent, AR, plane manager…

Contents