Interpola linealmente entre los colores a y b por t.
t se restringe entre 0 y 1. Cuando t es 0 devuelve a. Cuando t es 1 devuelve b.
using UnityEngine;
public class Example : MonoBehaviour { Color32 lerpedColor = Color.white; Color32 white32 = Color.white; Color32 black32 = Color.black;
void Update() { lerpedColor = Color32.Lerp(white32, black32, Time.time); } }
See Also: LerpUnclamped.