From the course: Unity: AR Visualization 02 Basic Interactivity

Unlock the full course today

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

Driving the settings menu

Driving the settings menu - Unity Tutorial

From the course: Unity: AR Visualization 02 Basic Interactivity

Start my 1-month free trial

Driving the settings menu

- [Instructor] Now that we've got our settings menu, we're going to start to write the code to make our toggle buttons actually work. First we're going to start by adding a reference to ARFoundation. So up here, we're going to add a new using, UnityEngine.XR.ARFoundation. Great, now we're going to add some private variables to cache off some of the references to objects that we need. So we're going to have private ARPointCloudVisualizer, use the particle visualizer, a reference to all those dots that we see. I'm going to call this a pointCloudVisualizer. Fantastic, next up is a reference to the plane manager. Going to call this planeManager. Right, now we want to get a reference to the plane prefab that a plane manager uses. We're going to call that planePrefab. This is a GameObject. And lastly, we need a reference to the debug manager. And I'm going to call this debugManager. Great, so we have our private variables all…

Contents