using UnityEngine;using System.Collections;using DG.Tweening;using UnityEngine.UI;public class TextColorTween : MonoBehaviour { private Text text;// Use this for initializationvoid Start () { text = GetComponent<Text>(); //text.DOColor(Color.red, 2);//2秒渐变为红色 text.DOFade(1, 3);//慢慢显示出来: 0:否,1:是;3:是3秒 } // Update is called once per frame void Update () {}}


评论