UE4.X-5.6.0 Bug: UMG Border "Draw as=border" display a wrong scale

Reference of document:
UMG Styling about the “Setting Image States”


Test Engine Version:
4.27
5.5.4
5.6.0


Test Operation:

  1. 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)
  1. Try to zoom with mouse wheel in UMG Designer. Try zoom to zoom=-6. Watch the scale!!!
  2. Add to viewport, and run game in “New Editor in Window”
  3. use mouse to scale the windows size to very small just fit the two border. Watch the scale!!!

Desired result:

  1. the scale of two border in corner show be same in UMG Designer
  2. the scale of two border in corner show be same when running game of scale windows

Test result:

  1. not same scale. “Draw as=border” in wrong scale

  2. “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? )