Hi I’m trying to read an array and then create a button for each member in the array. Now I understand this needs to be done by creating widget inside the main widget. I’ve tried to copy an example but it just doesn’t seem to work.
I presume they are created on top of each other, if you want them to appear next to each other you could use, either an offset in the canvas panel, a grid position in a grid panel, or a horizontal/vertical box.
I’m not sure what “RoomsScrollBox” is. Make sure you add the children directly to the panel/box they should appear on.
Unfortunately I don’t think it them creating on top of each other, firstly not one is appearing. RoomScrollBox is a Scroll Box. It works similar to a vertical box. It work fine if I test with just buttons. It’s the importing widgets I’m having trouble with.
Just tested in on my end and I can’t seem to replicate the issue.
Have you verified that your Array actually has content when you’re trying to read from it?
Try connecting a PrintString-node to the Loop Body of the ForEachLoop so that it prints a string for every element in the array. If nothing shows up the array is either empty or the ForEachLoop is never run.
Where is the Array situated in relation to the widget?
It’s a old topic, but I ran into the same problem.
I can add child widget in editor world,
But when I run the project (PIE), It won’t work.
Anyone knows what happend?
Thanks…