Skip to content

kakashysen/SimpleColorInterpolation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Colour Animation

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

What is inside

PlayerCube

a simple gameObject(cube) that has an rotation in axis y and change the emission colour.

Player

a c# scrtip that contains the animation to change the emission colour.

Start

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());

Author

Jose Aponte, joseapontec@gmail.com

Licencse

Available under the MIT license. See the LICENSE file for more info.