From the course: Unity: AR Visualization 03 Complex Interactivity

Unlock the full course today

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

Integrating the Part UI Note

Integrating the Part UI Note - Unity Tutorial

From the course: Unity: AR Visualization 03 Complex Interactivity

Start my 1-month free trial

Integrating the Part UI Note

- [Speaker] All right. We have a PartUI note that represents the note prefab. Let's go to PartUI to start implementing it. Double click on the PartUI script. All right, so we're going to first add some namespaces. I want access to the Guid. So I'm going to use, using System; And I want access to collections, so I'm going to go, using System.Collections.Generic; Great, namespaces are sorted out. I just want to add in two editor-exposed variables. These are going to be for the note's container and the note's prefab. Let's go, public GameObject notesContainer; Next, public GameObject noteSource; All right! So we've got access to those two things that I've created. Next up, I want to make a collection of that PartUI note that I made. So, it's going to be private List<PartUINote> notes; And we're going to initialize it. So, what this will do is add a collection of all the notes, prefabs that when we instantiate we want to…

Contents