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.

Adding the show all parts code

Adding the show all parts code - Unity Tutorial

From the course: Unity: AR Visualization 02 Basic Interactivity

Start my 1-month free trial

Adding the show all parts code

- [Instructor] All right? so now it's time to make the show parts functionality. As we mentioned before, let's work backwards from the outcome. So the outcome is to show all the parts and where do we have a catalog of all the parts? Well, in the AR parts manager, we haven't looked at this much, but lets go and open that up. All right? So all we're doing is adding the parts. But we're going to go add in a new method now is to be public. So this is going to be a public, static, void, Show (mumbles) All right? We don't really need to say parts cause this is the parts manager so contextually it makes sense. Great, so now we going to iterate through all of our parts. I use an (mumbles) equals zero. RI is less than the, counter the parts and move that, is later on. All right? so for every part we're going to go parts. Part show, all right? Simple as that, We're going to go and loop through…

Contents