# SetTextRenderColor during TickComponent

**URL:** <https://forums.unrealengine.com/t/settextrendercolor-during-tickcomponent/352723>\
**Category:** C++\
**Tags:** scenecomponent, text-render, unreal-engine, question, CPP\
**Created:** [April 3, 2016, 5:19am UTC](https://forums.unrealengine.com/t/settextrendercolor-during-tickcomponent/352723 "2016-04-03T05:19:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![artelis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@artelis](https://forums.unrealengine.com/u/artelis)\
**Post date:** [April 3, 2016, 5:19am UTC](https://forums.unrealengine.com/t/settextrendercolor-during-tickcomponent/352723/1 "2016-04-03T05:19:27Z")

</div>

I have a UTextRenderComponent subclass with an overridden TickComponent with this in it:

```
currentTime_ += DeltaTime;
currentAlpha_ = 1.f - currentTime_ / timeToFade_;
int alpha = currentAlpha_ * 255.f;
SetTextRenderColor(FColor(255, 0, 0, alpha));

```

With currentTime\_, timeToFade\_, and currentAlpha\_ being floats. timeToFade\_ is 2.0f. The goal is to have the alpha fade from 255 to 0 over 2 seconds linearly. I stepped through this and it’s definitely getting the proper alpha (255, 230, 205, etc) but the text color is not actually updating at all. Instead it’s just staying solid red. Is there something I’m missing about SetTextRenderColor that will make this not update during tick?

Oddly enough, if I fade any of the other RGB values, it works. Alpha just appears to do nothing.
