- Home /
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?
Answer by tony_jadeja · Jan 24, 2021 at 01:15 PM
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.
Your answer
Follow this Question
Related Questions
Can the animation editor create local rotational data? 3 Answers
Adding animation clips via script 2 Answers
GameObject to follow another GameObject through a spline with a dynamic end waypoint 0 Answers
Can I make animations snap to a frame? 1 Answer
Setting local position after animation is inconsistent 0 Answers