I have GUI Texture that I want to become progressively darker (more black) over time. How do I do this?
You need to use Color.Lerp
. This will work very nicely for you:
var startColor : Color = Color.gray;
var endColor : Color = Color.black;
var fadeSpeed : float = 0.5;
private var tex : GUITexture;
function Update () {
tex = this.gameObject.GetComponent(GUITexture);
tex.color = Color.Lerp(startColor, endColor, Time.time*fadeSpeed);
}