From the course: Unity: AR Visualization 01 Basic Concepts

Unlock the full course today

Join today to access over 24,100 courses taught by industry experts.

Setting up the debug panel script

Setting up the debug panel script - Unity Tutorial

From the course: Unity: AR Visualization 01 Basic Concepts

Setting up the debug panel script

- [Instructor] Now that we have our UI all set up for our debug manager, it's now time to drive its functionality via script. To do this, we're going to make a new script. So go over to the Scripts folder, right-click, go Create, C# Script. We're going to call this DeBugManager. Fantastic. Now let's open it up in Visual Studio. To do this, I'm going to double-click on the DeBugManager script, and here it is in Visual Studio. I'm going to do some housekeeping and clean up this class a little bit. So let's get rid of the things we do not need. Excellent. Now, the first thing I want to do is add a reference to my TextMeshPro object. So before I actually make that exposed field, I'm going to add the namespace. So under UnityEngine, I'm going to go using TMPro. All right. Like before, I'm going to add a little header here, and now I'm going to expose my field. So this is going to be public. And I'm looking for…

Contents