Announcement

Collapse
No announcement yet.

slate SBorder Brush not working as intended

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    slate SBorder Brush not working as intended

    I tried to make make a SBorder but I got some problem with it.
    The border appears but its sides are not being scale with relative to any content present inside it.

    Here is my code

    Code:
         + SOverlay::Slot()
        .HAlign(HAlign_Right)
        .VAlign(VAlign_Top)
        [
        SNew(SBorder)
        .BorderImage(&BallHUD->ScoreBoardBrush)
        .Padding(FMargin(0, 5, 5, 0))
        .Content()
        [
        SNew(SBox)
        .Padding(FMargin(2, 2, 2, 2))
        [
        SNew(STextBlock)
        .Text(FText::FromString("9999"))
        ]
        ]
        ]
    This is my Brush


    And this is how it looks like
    Attached Files
Working...
X