Changing Text Colour With Do Tween

So I tried to change a Text Color with obj.GetComponent().DOColor(“ACACAC”,0.05f);
Anyone know how to change the text color with DoTween?


If you are using TextMeshPro

TextMeshProUGUI myText; 

If you are using Only Text

Text myText; 

You have to put using DG.Tweening; on starting

  • If you have not installed DOTween
    Go to **Window->Package Manager->DOTween ** and install it.
  • If you don’t find it in Package Manager Go to Asset Store and search for DOTween and install it.