Unreal Engine SImage ColorAndOpacity not working

Viewed 89

I have the following code to create a full screen gray image:

ChildSlot
[
    SNew(SOverlay)
    + SOverlay::Slot().HAlign(HAlign_Fill).VAlign(VAlign_Fill)
    [
        SNew(SImage).ColorAndOpacity(FLinearColor(0.5f, 0.5f, 0.5f, 1.0f))
    ]
];

and the image looks like this:

enter image description here

Can you please help me understand why I have the little squares and how may I get the solid gray color I'm expecting to get for:

FLinearColor(0.5f, 0.5f, 0.5f, 1.0f)
0 Answers
Related