UImage->SetBrushSize doesn't work anymore in UE5 (was ok in UE4)

Hey,
I found out the solution.

Use this instead:

    FSlateBrush mybrush = imageBG->Brush;
    mybrush.SetImageSize(FVector2D(size, size));
    imageBG->SetBrush(mybrush);

it sets the size of the image through the brush, and this actually worked for me.

1 Like