首先了解rgba() 使用DoTween插件中的DoColor
UIGeneralization.GetChild(0).GetComponent<Text>().color=new Color(0, 0, 0, 0);//黑色透明
UIGeneralization.GetChild(0).GetComponent<Text>().DOColor(new Color(1, 1, 1, 1), 2);//白色 显示 2s
//等待5秒
yield return new WaitForSeconds(5f);
UIGeneralization.GetChild(0).GetComponent<Text>().DOColor(new Color(0, 0, 0, 0), 2);//黑色透明
yield return new WaitForSeconds(2f);
进行其他的开发