# \[UMG\] Editable Text - change text color

**URL:** <https://forums.unrealengine.com/t/umg-editable-text-change-text-color/362807>\
**Category:** UI\
**Tags:** unreal-engine, color, Widget, question, UMG\
**Created:** [July 3, 2016, 12:07pm UTC](https://forums.unrealengine.com/t/umg-editable-text-change-text-color/362807 "2016-07-03T12:07:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![JaroMast](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JaroMast](https://forums.unrealengine.com/u/JaroMast)\
**Post date:** [July 3, 2016, 12:07pm UTC](https://forums.unrealengine.com/t/umg-editable-text-change-text-color/362807/1 "2016-07-03T12:07:34Z")

</div>

Hello, is it possible to change color of Editable Text in UMG?

---

<div class="post-metadata">

**Author:** ![Mookaroni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mookaroni](https://forums.unrealengine.com/u/Mookaroni)\
**Post date:** [July 3, 2016, 11:14pm UTC](https://forums.unrealengine.com/t/umg-editable-text-change-text-color/362807/2 "2016-07-03T23:14:09Z")

</div>

Yup. Can’t seem to upload any images for some reason, but on the Designer tab of your UMG, scroll down to Style. Open that up and you should see Color and Opacity.

---

<div class="post-metadata">

**Author:** ![JaroMast](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JaroMast](https://forums.unrealengine.com/u/JaroMast)\
**Post date:** [July 4, 2016, 6:02am UTC](https://forums.unrealengine.com/t/umg-editable-text-change-text-color/362807/3 "2016-07-04T06:02:26Z")

</div>

Ok, you are right. There is some additional requirements to meet while changing color of text in Editable Text.

- Uncheck Inherit flag
- Compile widget (color is not changing dynamically)

---

<div class="post-metadata">

**Author:** ![Mookaroni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mookaroni](https://forums.unrealengine.com/u/Mookaroni)\
**Post date:** [July 4, 2016, 7:11am UTC](https://forums.unrealengine.com/t/umg-editable-text-change-text-color/362807/4 "2016-07-04T07:11:14Z")

</div>

Cool cool. You could change the color dynamically by making the color a variable, and changing that value from an outside blueprint

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_650f1d25](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_650f1d25](https://forums.unrealengine.com/u/anonymous_user_650f1d25)\
**Post date:** [July 29, 2016, 2:51am UTC](https://forums.unrealengine.com/t/umg-editable-text-change-text-color/362807/5 "2016-07-29T02:51:27Z")

</div>

Edit: Nevermind. I think I ran into a UMG bug where the output variable in the Change Color bind got corrupted. I deleted the bind and created a new function with the exact same content and it’s working good now. Likely just me, or the way I use it, but UMG seems more buggy than all the other systems I’ve mucked with.

Hey , could I bother you to elaborate on ?  
I can’t for the life of me figure out how to get the Text color to change. It’s stuck on magenta.

In the Text item’s “Appearance” section I bound “Color and Opacity” to a function. In that function I check a float variable in the player character. Based on the value of that variable I change the color, i.e., if \> .60 Slate Color = Green, if \> .25 Slate Color = Yellow, else Slate Color = Red.

I wanted to debug it but for some reason breakpoints in that function aren’t getting hit. I have another function that changes the Content \> Text value based on the same player character variable and that’s working perfect.

I also tried creating another, Slate Color, variable in the Player character BP  
and then feed that into the bind function for the Text’s color and opacity but that didn’t work either.

---

<div class="post-metadata">

**Author:** ![Randy\_Yogesh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Randy\_Yogesh](https://forums.unrealengine.com/u/Randy_Yogesh)\
**Post date:** [December 12, 2017, 10:34am UTC](https://forums.unrealengine.com/t/umg-editable-text-change-text-color/362807/6 "2017-12-12T10:34:25Z")

</div>

i like to change wall color when i press keys

---

<div class="post-metadata">

**Author:** ![Rhage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rhage](https://forums.unrealengine.com/u/Rhage)\
**Post date:** [April 25, 2019, 12:45am UTC](https://forums.unrealengine.com/t/umg-editable-text-change-text-color/362807/7 "2019-04-25T00:45:15Z")

</div>

Ever figure out?

---

<div class="post-metadata">

**Author:** ![JakeD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JakeD](https://forums.unrealengine.com/u/JakeD)\
**Post date:** [September 19, 2024, 4:36am UTC](https://forums.unrealengine.com/t/umg-editable-text-change-text-color/362807/8 "2024-09-19T04:36:14Z")

</div>

In case someone else stumbles here. To set the color of editabletext at runtime you have to call the function SetStyle. If you’re only trying to change color just get the existing Style struct and plug in the other values.
