Color Animation Component
The color animation component allows you to apply an animated color gradient to other components, such as meshes or light sources or any other component type that handles the message type
This component has no effect on its own. It tries to change the color of other attached components. If no other component has a main color or doesn’t handle the message
ezMsgSetColor, there will be no effect.
If an attached component does handle the
ezMsgSetColor, but doesn’t properly update its color dynamically when combined with this component, it may not invalidate its cached render data correctly. A temporary work around is to set the game object’s mode to
Gradient: The color gradient to use. The gradient will be sampled from left to right over
Durationseconds. Each time the sampled color is put into an
ezMsgSetColorand that message is sent to all other components that are attached to the same object.
Duration: The duration that the color gradient should last before it is being repeated.