From the course: Unity and Vuforia: Trying on Watches in Augmented Reality
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Watch swap, part 3 - Unity 3D Tutorial
From the course: Unity and Vuforia: Trying on Watches in Augmented Reality
Watch swap, part 3
of each function successfully, that is, showing the watch model on the wrist, let's do the second part, which is controlling the window animation. So here I will create three variables, because we have to animate three windows, which is watch window one, watch window two, and watch window three. The third one will be w3WindowAnimation. So right now these variables are empty, and they don't contain any value, so let's assign them a value. We are going to assign the animation components of these windows. We created animations for these watch windows, and that's the animations on the animation component right here. So we are going to access these animation components of each window through code, and we're going to assign them to these variables, so let's do that. Set w1WindowAnimation equals to, w1Window.getComponent, and we need the animation component. Similarly, w2WindowAnimation equals to, w2Window, and we need the animation component of w2Window. Same with w3WindowAnimation. We need…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.