Reader small image

You're reading from  Unity 5.x Animation Cookbook

Product typeBook
Published inMay 2016
Reading LevelExpert
PublisherPackt
ISBN-139781785883910
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Maciej Szczesnik
Maciej Szczesnik
author image
Maciej Szczesnik

Not interested. Too busy with current game project. Source: Linkedin.
Read more about Maciej Szczesnik

Right arrow

Blending light colors with the Animation View and the Animator Controller


This recipe shows how to use Animation Controllers with the clips created in Animation View.

Getting ready

We will animate the light color in this example. You need to have a scene with at least one light and a mesh to see the effect. You can also download the provided example Unity project and go to the Chapter 02 Working with the animation view\Recipe 02 Using the animation view and the animator controller to blend light colors directory. You will find a scene called Example.unity there, with a direction light that has already been animated. In this example, we also animate the background color of the camera (the camera is a child object of the directional light).

How to do it...

To blend animations (colors in this example) of a game object, you need to follow these steps:

  1. Open the scene and select the light game object in the Hierarchy.
  2. With the light selected, go to Window | Animation to open the Animation View and create...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Unity 5.x Animation Cookbook
Published in: May 2016Publisher: PacktISBN-13: 9781785883910

Author (1)

author image
Maciej Szczesnik

Not interested. Too busy with current game project. Source: Linkedin.
Read more about Maciej Szczesnik