Summary
In this chapter, you learned how to trigger animations using a Raycast and a gaze interaction in Unity. You set up a Raycast target, created an animation timeline, triggered a function to play the timeline, and triggered an animation function from a gaze interaction. By following the steps, you should now have a working animation trigger interaction framework that you can use in your VR projects.
In the next chapter, we will explore Unity’s lighting system and how lights can be used to alter and enhance our VR scenes.