From the course: Unity Medical Visualization: 02 Animation and Coding

Unlock the full course today

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

Complete isolations

Complete isolations - Unity Tutorial

From the course: Unity Medical Visualization: 02 Animation and Coding

Start my 1-month free trial

Complete isolations

- [Narrator] In this movie, we're going to link the UI button we created earlier to the animations of the heart. Both the animations of the arrows and the contraction of the heart. To do this, I'm going to make sure first of all, that are animations are set up as we need them to be. First, I'll select the root object and then select the heart mesh itself with the animated component attached, and also the Anim Toggle Value Script. That will allows us to toggle with between the start and stop states of the animation. When I switch to the animator and I select the heart, you can see the anim speed here for the heart object is set to a value of one. If I press the play button on the toolbar here, you can see that the only thing that really moves are the arrows. If I switch to the animator, you can see that now the hearts section is set to zero but if I select the arrows, their speed is one. Of course, I could change that…

Contents