Added Child Widget Does Not Appear in Scrollbox

I’m trying to create a server list in my game. All the networking stuff is set up in the Game Instance, per the official multiplayer tutorial, save for the user interfaces, which are all widget blueprints.

Basically, you push a button on the server menu, and this executes:

From which this should then execute:

However, when I run the game in the editor, it does not add these widgets to the scrollbox. I put that Print String at the end to confirm that it does execute, and it does, but the scrollbox remains empty.

I’ve put in Print Strings after each node in both of these Blueprints and they confirm all the nodes are executing. I’ve also printed the length of the array and tested it with multiple servers for it find, confirming that the array isn’t empty. I’ve looked around and answers here suggested removing the canvas panel from the child widget and adding a delay in before the ServerEntry widgets are created, and neither of those has worked. I’ve also tried swapping the Content and Target pins on the Add Child node, as the documentation has the element to be added as the Target and the Content as the widget to add it to, but these are reversed in the tutorial I followed. Neither work.

Maybe it has something to do with running these things from the Game Instance?

Here is a picture of the ServerEntry Widget Blueprint in case that helps determine the problem:

As well as the Server Menu Widget Blueprint. The highlighted Scrollbox is the element that I am trying to add the child widgets to.

I have not much to add, because it looks mostly well made. One thing is Canvas really shouldn’t be there, and the other is that maybe a Border would be nice instead. Here is how my similar button’s hierarchy looks like:

114904-0.png

Putting all of these in the GameInstance is quite strange logic for me, but it still should work, I guess.
Bonus tip: Don’t forget to clear your scrollbox before filling it, else it would just add more and more buttons every time you open the menu.

No, see, I’m not asking if the whole thing will work. I’ve tested it and it does.

My problem is that when it gets to the part in the CreateSessionEntry event where it should add the child widgets its creating to the scrollbox in the ServerMenu, those widgets don’t appear. The Print String after the Add Child node shows up, but the actual widgets do not.

I tried adding a border to see if that might help, but it didn’t.

Did you find a way around? Same problem here :frowning: I dont want to resort to the use grids or else

Sort of? What I ended up doing was making the results a separate widget from the search form and switching to it once the user clicks the search button. Once it was in its own widget, it worked. Given how much was going on in the search form anyway, I found that to be the more elegant solution.

I never figured out how to get it to add children on that same page though.