UE4.17 Retainer box is washing colors
I have the problem that when I am using custom drawer: FSlateDrawElement::MakeCustom(OutDrawElements, TopLayer, Drawer);
and placing widget inside RetainerBox results that widget has washed colors. https://i.imgur.com/Q9aGEOA.png
The only solution I found is to use gamma correction by default: WidgetRenderer = MakeShareable(new FWidgetRenderer(true));
but it means I need to rewrite RetainerBox what I really don't want to do.
asked Sep 23 '17 at 06:16 PM in Bug Reports
I've managed to solve the problem completely, at least for myself. I needed to round corners of my widget so I made an alpha mask in Photoshop. Then I used Retainer Box with a transparent material. My colors were washing out (first screenshot).
Then after a following manipulation with the material, I managed to make it just the right color as it was without the Retainer Box (second screenshot).
And here's what I've done in the material to make it happen (white texture sample is my alpha texture for corners).
Hope it helps!
answered Dec 29 '17 at 01:57 PM
It seems like this is a bug in the engine that was fixed in 4.15 and somehow reappeared in 4.18p2 and I still have it in 4.21 https://issues.unrealengine.com/issue/UE-35531
As a (temporary) workaround you can manually add the correct gamma correction into your retainer material. e.g. like this:
answered Nov 04 '18 at 01:53 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here