Download

Issues with slate Scale Box.

So hey, ive been trying to wrap my head around slate the last few days and ran into a few issues i was unable to find any solutions to it via Google.

So for some reason my Scale box isnt acting like the blueprint counterpart (Image for reference (Top is c++ version bottom is bp) and i would like to ask what im doing wrong, have i missed anything ?

unknown.png

MainBox = SNew(SVerticalBox)
+ SVerticalBox::Slot().VAlign(VAlign_Fill).HAlign(HAlign_Fill)

    SNew(SHorizontalBox)
    + SHorizontalBox::Slot().HAlign(HAlign_Fill).FillWidth(1.0f)

    + SHorizontalBox::Slot().HAlign(HAlign_Fill).FillWidth(1.0f)
    
        SNew(SScaleBox).HAlign(HAlign_Fill).VAlign(VAlign_Fill).Stretch(EStretch::ScaleToFill)
        
            SNew(STextBlock)
            .Text(LOCTEXT("TestLog", "TestText!"))
        ]

    ]

    + SHorizontalBox::Slot().HAlign(HAlign_Fill).FillWidth(1.0f)

];