Reference of document:
UMG Styling about the “Setting Image States”
Test Engine Version:
4.27
5.5.4
5.6.0
Test Operation:
- Create a UMG like following:
- Canvas
- Border1(Position=(0,0), size=(400,400), Brush Image=UVEidtorColorGrid_Color, Draw as=box, Margin=0.01). The “UVEidtorColorGrid_Color” is in Editor content
- Border2(Position=(500,0), size=(400,400), Brush Image=UVEidtorColorGrid_Color, Draw as=box, Margin=0.01)
- Try to zoom with mouse wheel in UMG Designer. Try zoom to zoom=-6. Watch the scale!!!
- Add to viewport, and run game in “New Editor in Window”
- use mouse to scale the windows size to very small just fit the two border. Watch the scale!!!
Desired result:
- the scale of two border in corner show be same in UMG Designer
- the scale of two border in corner show be same when running game of scale windows
Test result:
-
not same scale. “Draw as=border” in wrong scale
-
“Draw as=border” in wrong scale when Running game of scale to very small windows
It’s really hard to understand the relationships of scale code of slate.
I am not a slate pro developer, I don’t know where cause the bug. (It maybe draw as border did a extra scale in code which is may be not need? )