UMG ScrollBox InsertChild
参照 SScrollBoxSlot中的AddSlot方法, 增加一个新的Insert函数即可
/** Adds a slot to SScrollBox */ SScrollBox::FSlot& SScrollBox::AddSlot() { SScrollBox::FSlot& NewSlot = *new SScrollBox::FSlot(); ScrollPanel->Children.Add( &NewSlot ); return NewSlot; }
/** Adds a slot to SScrollBox */
SScrollBox::FSlot& SScrollBox::AddSlotAt(int32 Index)
{ SScrollBoxExt::FSlot& NewSlot = *new SScrollBoxExt::FSlot(); ScrollPanel->Children.Insert(&NewSlot, Index); return NewSlot; }