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.

Creating the Pop-up script

Creating the Pop-up script - Unity Tutorial

From the course: Unity: AR Visualization 02 Basic Interactivity

Start my 1-month free trial

Creating the Pop-up script

- [Instructor] All right, we've got our in world UI popup UI completed. It's time to create the script to drive that functionality. So this is going to be a UI script. So let's go down to our UI section here under Scripts and I'm just going to duplicate the UIManager. All right, now that it's duplicated I'm going to rename this to PartUI, seems descriptive enough. All right, let's double-click that to open it. Now it's still going to be under the ARApp.UI namespace but I can get rid of most of the stuff inside. Before we continue let's rename our class to PartUI. Let's go and add a couple of other namespaces that we'll be using. First namespace is the ARPart namespace. I'm going to using ARApp that we created dot Parts. This will give us access to the ARPart we created earlier. We also want to display text, so we're going to use Text Mesh Pro that will allow us to access text. All right, so we've got a title and…

Contents