unity Image图片颜色渐变
作者:互联网
void BlackFade()
{
black.color = Color.Lerp(black.color, Color.clear, Time.deltaTime * speed);
//black.color = Color.Lerp(black.color, Color.clear, Time.deltaTime * speed);
}
void WhiteFade()
{
white.color = Color.Lerp(white.color , Color.black, Time.deltaTime * speed);
}
void Update () {
BlackFade();
}
标签:Lerp,color,渐变,deltaTime,Color,unity,black,void,Image 来源: https://blog.csdn.net/LiPing122335/article/details/122762853