From the course: Unity: AR Visualization 02 Basic Interactivity

Unlock the full course today

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

Creating the part dynamic data structure

Creating the part dynamic data structure - Unity Tutorial

From the course: Unity: AR Visualization 02 Basic Interactivity

Start my 1-month free trial

Creating the part dynamic data structure

- [Instructor] All right, time to make some data structures. So we're going to make two data structures, we're going to create a manifest, which is going to be a collection of our ARPart data, and then we're going to make ARPart data classes. ARPart data classes are going to be a serializable class, similar to the ARPart definition. So let's go grab the ARPart definition. Eh, let's duplicate that one, and rename it to "ARPartData." Copy that, and open that up in our code editor. All right, let's go rename that, and we're going to keep the "uid," 'cause we want to be able to identify the data with the object, but then we're going to set two more things based on the actions that we set up. So, first is "visibility," and that's going to be a bool, on or off. All right, and then the second one is going to be position, and that's going to be a Vector3. All right, to use the Vector3, we need to make sure that we have the…

Contents