UMG - Vertical/ScrollBox set child index
I'm trying to set the priority of a scrollbox that has some widget children.
Right now i want the new widget child to be at the top of the list, instead of the bottom, but I have no way of reversing the order of the scrollbox. I can't also set the "order" (index) I want to add the child to. Is there any function/panel I can use that let's me organize it's children?
asked Jan 19 '16 at 05:24 PM in Blueprint Scripting
Did you ever find a solution? I would like to know too.
EDIT: At the moment I clear the box from all children after the point where I want to add the specific child. And then I recreate the children I had to delete. Given that widgets cannot be destroyed during a level, with this workaround I get quite an enormous number of unnecessary objects stacking in memory.
I would really like to be able to organize children via indexes in blueprint, exactly like you can do inside the editor with the arrows or dragging, or in c++.
Hello - it has been a while since you posted this, so I do not know if your problem has been solved. The C++ function that you are looking for is the UScrollBox::InsertChildAt function, which allows you to specify where you want it added.
answered Jun 03 '17 at 11:50 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here