UMG retainer box washing colours out on 3D Widget

Hey Guys,

So we’re trying to create a visual effect using the new retainer boxes, and it works great. However when you use retainer boxes with UMG elements for 3D world widgets, the colours get oddly washed out. They seem to work fine when added to viewport, but acting strangely in world.

We’ve broken it down step by step to make sure we weren’t doing anything odd, and the ONLY difference is the use of the retainer box. Attached is an image explaining the situation, we’ve used as simple material as possible, with as simple a UMG as possible. The image shows a standard 3D widget on the left, and a 3D widget using retainer box on the right.

As stated before, retainer boxes on viewport widgets work fine. It may not be completely clear from the image, but all elements of the UMG get washed out, not just images, but text, borders etc.

I had this same problem today, it seems that the RetainerBox materials sends input (the texture parameter) and expects output as linear RGB, so having a texture sampler with a sRGB texture will look bad. what did it for me was setting the texture as not sRGB in the texture import settings.

I’d consider this is a bug so you should submit a bug report.

Hey Mate! Did you solve your issue with 3D Widget and RetainerBox? Bug report was closed as “Won’t Fix” without any explanation.

Hey Mate! Did you solve your issue with RetainerBox and 3D Widget? Bug report was closed as “Won’t Fix” without any explanation. But I have the same issue and still can’t find solution…

I BELIEVED that the submitted answer was the correct fix, but I wasn’t really dealing with the issue at the time. We came back to this a few weeks ago and actually found the same as you, changing it to non-srgb (and therefore the texture samplers in the shader as linear color) had some effect, but didn’t really change much. We actually ended up just compensating for this in our shader. Not a satisfying answer at all, I know.

It didn’t work for me (I mean submitted answer). But this bug was fixed in 4.16, and now it’s broken in 4.18p2 again - https://answers.unrealengine.com/questions/712257/418p2-retainer-panel-causes-textures-in-3d-widgets.html