Example of colour interpolation from C# code. This example change the Emission Color
for a simple Cube.
For more information you can check my blog
a simple gameObject
(cube) that has an rotation in axis y and change the emission colour.
a c# scrtip
that contains the animation to change the emission colour.
Contains two important lines. You can comment and uncomment each one of them and test the game to see the animation changes.
StartCoroutine(ColorChange(Color.yellow));
//StartCoroutine(Blink());
Jose Aponte, joseapontec@gmail.com
Available under the MIT license. See the LICENSE file for more info.