# Image black in UMG when child of a button

**URL:** <https://forums.unrealengine.com/t/image-black-in-umg-when-child-of-a-button/479304>\
**Category:** UI\
**Tags:** image, unreal-engine, brush, question, UMG\
**Created:** [February 23, 2021, 10:36pm UTC](https://forums.unrealengine.com/t/image-black-in-umg-when-child-of-a-button/479304 "2021-02-23T22:36:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mistercokes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mistercokes](https://forums.unrealengine.com/u/mistercokes)\
**Post date:** [February 23, 2021, 10:36pm UTC](https://forums.unrealengine.com/t/image-black-in-umg-when-child-of-a-button/479304/1 "2021-02-23T22:36:16Z")

</div>

I have a setup with an UMG button containing an image. This image has a texture-based brush assigned.

When the image is a child of the button, it is displayed without colors. When it is outside of the button, it is displayed with colors. What could be the reason of this behavior? The overlay shown in the hierarchy does not affect this behavior. If i wrap everything in an overlay on highest level, the color is displayed correctly (but the button is not clickable)

 ![330791-umg-black.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/2/9/8296dfc83e34753817cef831e1ba98ef263d8184.png)

 ![330677-umg-colored.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/8/5a84c49b0d1d3b0d8c7fb958d2a201630d1707ac.png)

---

<div class="post-metadata">

**Author:** ![FridgeFace16](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FridgeFace16](https://forums.unrealengine.com/u/FridgeFace16)\
**Post date:** [February 23, 2021, 11:40pm UTC](https://forums.unrealengine.com/t/image-black-in-umg-when-child-of-a-button/479304/2 "2021-02-23T23:40:01Z")

</div>

Hi mistercrokes,

When you say the image has no color, are you meaning it is black or invisible?

![330685-buttonappearance.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/6/ec6c99b90c53fa0bd199caa26ff287bfffe4ba36.png)

Something that could be affecting the color of your image is the ‘Color and Opacity’ of the **Button**. This is a color multiplier that affects **ALL** children/sub-children of the button, but not the button itself.

If that isn’t set to the default (1,1,1,1), it will have an effect on any child that has a visual.

Other than that you would have to broadly check for any places where you programmatically are setting color, and ensure it isn’t interfering with your images color.

Hope this helps

---

<div class="post-metadata">

**Author:** ![L1z4rD89](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/l1z4rd89/32/1194537_2.png) [@L1z4rD89](https://forums.unrealengine.com/u/L1z4rD89)\
**Post date:** [February 23, 2021, 11:44pm UTC](https://forums.unrealengine.com/t/image-black-in-umg-when-child-of-a-button/479304/3 "2021-02-23T23:44:04Z")

</div>

Could you give/show more details? “But the button is not clickable” sounds like the button is not enabled or, if there are some more widgets on top of each other, the ZOrder may be wrong and you can’t click because it is under another widget. When you add a new button to a widget and add your image, how does the event look like to create your widget and add it to your viewport?

---

<div class="post-metadata">

**Author:** ![mistercokes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mistercokes](https://forums.unrealengine.com/u/mistercokes)\
**Post date:** [February 24, 2021, 8:38pm UTC](https://forums.unrealengine.com/t/image-black-in-umg-when-child-of-a-button/479304/4 "2021-02-24T20:38:56Z")

</div>

When I use a high level overview, the button is indeed not clickable due to the zorder (the image is fully above the button, as intended). But this was only a test to verify if it would work with that setup. I saw that the image of the original issue did not get uploaded correctly, the image is now added.

---

<div class="post-metadata">

**Author:** ![mistercokes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mistercokes](https://forums.unrealengine.com/u/mistercokes)\
**Post date:** [February 24, 2021, 8:40pm UTC](https://forums.unrealengine.com/t/image-black-in-umg-when-child-of-a-button/479304/5 "2021-02-24T20:40:35Z")

</div>

can’t believe I did not see that, thanks for your help!
