From the course: Unity: AR Visualization 02 Basic Interactivity

Unlock the full course today

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

Making the Part and PartManager scripts

Making the Part and PartManager scripts - Unity Tutorial

From the course: Unity: AR Visualization 02 Basic Interactivity

Start my 1-month free trial

Making the Part and PartManager scripts

- [Instructor] All right, so now that we have our fancy menu set up with all of our fancy menu options, it's time to start talking about data structure. So we are going to create a data structure to house our ARPart information. And so the first thing we're going to do is go over to Scripts, and we're going to go create a new folder for these particular script types. So I'm going to right-click, go Create, Folder, and we're going to call this Parts. I'm going to make sure that we match our namespace to our folder structure as well. So we're going to make a new script as well. So that's Control + D, or Command + D. Now that we have our script let's move it into our Parts folder, open that up and we're going to call this ARPart. Let's go ahead and open that up in our editor, double-click. Now that we've got a script open, let's make sure that we change the namespace to Parts to match our folder, and our class name to…

Contents