I’m creating widgets through code and adding it to a Scroll box:
UScrollBox* box = Cast<UScrollBox>(GetWidgetFromName("BP_LogBox")); URichTextBlock* text = WidgetTree->ConstructWidget<URichTextBlock>(URichTextBlock::StaticClass()); box->AddChild(text);
which works perfectly fine, however! I can’t seem to change it’s index within the box!
I need the new text boxes to appear at the top, but they are just going to the bottom of the box.
Doesn’t do anything at all, neither does box->InsertChildAt.
So, how can I get my widgets to be added (or moved) to the top of the scrollbox container?
Edit: Do slots have something to do with it? I can’t figure out how to use them.