# How to change Selected Background Color in blueprint for Editable Text Multi-line

**URL:** <https://forums.unrealengine.com/t/how-to-change-selected-background-color-in-blueprint-for-editable-text-multi-line/2657532>\
**Category:** Blueprint\
**Tags:** unreal-engine, editor, question, Blueprint\
**Created:** [September 17, 2025, 12:40pm UTC](https://forums.unrealengine.com/t/how-to-change-selected-background-color-in-blueprint-for-editable-text-multi-line/2657532 "2025-09-17T12:40:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valentinvis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/valentinvis/32/1008648_2.png) [@Valentinvis](https://forums.unrealengine.com/u/Valentinvis)\
**Post date:** [September 17, 2025, 12:40pm UTC](https://forums.unrealengine.com/t/how-to-change-selected-background-color-in-blueprint-for-editable-text-multi-line/2657532/1 "2025-09-17T12:40:33Z")

</div>

How can you change `Selected Background Color` for Editable Text Multi-line with a call from a blueprint? It doesn’t have a `Set Selected Background Color`, and if you call `Set Widget Style` it is not there either.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/4/be4e4f320a35e31d81c9f0283bbaadcf5f74d26f.png)

Also, if you call set style in `PreConstruct`, then you can’t change the value from `Designer` anymore. After compiling it reverts to the purple inherit value.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/0/2d0574218158101874ad794da7a8e8626135af08.jpeg)

It reverts to this, no matter what you set the color to and uncheck inherit:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/9/cd9ec506934e1db28041630446f022a21fbf6bdf.png)

Is this a simple case of Epic Engine team forgetting to make that accessible in blueprint and by calling set style it always reverts to default value?

---

<div class="post-metadata">

**Author:** ![Valentinvis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/valentinvis/32/1008648_2.png) [@Valentinvis](https://forums.unrealengine.com/u/Valentinvis)\
**Post date:** [September 17, 2025, 1:38pm UTC](https://forums.unrealengine.com/t/how-to-change-selected-background-color-in-blueprint-for-editable-text-multi-line/2657532/2 "2025-09-17T13:38:05Z")

</div>

It does seem that they forgot to make it visible, also they didn’t made color (and opacity) visible either, for that as well you have to go though the whole style like in the image from original post where you have to get the style and only change the color.

I made 2 simple functions to change those 2 values:

```c
UFUNCTION(BlueprintCallable, Category = ".My Functions|UI")
static void setColor(UMultiLineEditableText* editableTextMultiLine, const FSlateColor& color);

UFUNCTION(BlueprintCallable, Category = ".My Functions|UI")
static void setSelectedBackgroundColor(UMultiLineEditableText* editableTextMultiLine, const FSlateColor& color);

```

```c
void UGeneral::setColor(UMultiLineEditableText* editableTextMultiLine, const FSlateColor& color)
{
FTextBlockStyle style = editableTextMultiLine->WidgetStyle;
style.ColorAndOpacity = color;
editableTextMultiLine->SetWidgetStyle(style);
}

```

```c
void UGeneral::setSelectedBackgroundColor(UMultiLineEditableText* editableTextMultiLine, const FSlateColor& color)
{
FTextBlockStyle style = editableTextMultiLine->WidgetStyle;
style.SelectedBackgroundColor = color;
editableTextMultiLine->SetWidgetStyle(style);
}

```

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/c/54cf8693f339cf9dc6bcf4855e6642a3c1c92240.png)

For both colors in blueprint just choose `Slate Color`.

Until they make them visible in editor, I’ll just use these 2.
