using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using DG.Tweening; public class DymanicTxt : MonoBehaviour { Text txt; // Start is called before the first frame update void Start() { txt = this.GetComponent(); print("场景加载"); string str1 = "场 景 加 载 中 。。。"; txt.DOText(str1,2); } }