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?

Hii, @KRSBX

If you are using TextMeshPro

TextMeshProUGUI myText; 
myText.DOColor("ACACAC",0.05f);

If you are using Only Text

Text myText; 
myText.DOColor("ACACAC",0.05f);

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.