public class ColorWave
Inherits MonoBehaviour
[ExecuteAlways]
Older version of ColorAnimationBehaviour
, does basically the same thing. It does have a few extra options.
Fields
public SpriteRenderer Renderer
[SkipSerialisation]
Reference to the target SpriteRenderer
public Gradient Gradient
[SkipSerialisation]
The colour gradient to follow
public float Duration
Duration of the animation in seconds
public float Offset
The starting time offset
public bool UseSinWave
Should the gradient be evaluated using a sine wave? A mod function will be used if this is false.
public float OffsetVaration
The random time offset to start the animation with.
public float SpeedVaration
The random frequency multiplier influence.
public float Randomisation
Randomisation influence. Causes flickering.
bi bij bibi