How to do it...

To use the Animation View and create a flickering light, follow these steps:

  1. Open the scene and select a light you want to animate.
  2. With the light selected, go to Window | Animation. The Animation View will open.
  3. To create a new animation, click on the Create button, as shown in the following screenshot:
  1. Create New Animation Clip will appear. You can choose a directory and the animation name. Then, click the Save button.
  2. A new, empty animation will be created, an Animator component will be added to the selected game object (a light in this example), and an Animator Controller will be created in the same directory as the ...

Get Unity 5.x Animation Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.