Back to Writing
NOTESunitytextmeshprouguidotweenfade-effect

Unity - TextMeshProUGUI Fade Out Effect

July 6, 2020Updated Feb 17, 2026

![](

DVJXH0AgniB4DEi_rgg.u8x2KSy_37xGu9cpjEPZ56yYgvoLB5nJla4Qi6RjQ_Ag.PNG.cdw0424/image.png?type=w966)

Add a Canvas Group component, then control the Alpha value.

The reason for this approach is that with tmp.color = new Color...

if you go that route, for some reason,

the change only applies when written as individual lines.

It doesn't work inside a for loop.

![](

1Xc4YZzjV-RUytdJPEg.aZMDjudC5tGv94eEW-55C3TJE0NtKMrWZFFAtaUL4wYg.PNG.cdw0424/image.png?type=w966)

If you have the DOTween asset, you can control this much more easily with that approach.