How to add button "OnClicked" Event after adding it as a child.

I have a uniform grid panel and I add children to it for each save file it finds. The game is supposed to allow an infinite amount of listings because it is for custom levels. I got the levels to add correctly to the Uniform Grid Panel, but now the button does not work. I can click it like normal, but it does not run any code. I even tried a print command and that did not fire.

Image of what it looks like in game:

Image of the code to add the files into the Uniform Grid Panel:

What does the onclicked event for your button look like in your UWCustomLevelInfo blueprint? You either need the event graph OnClicked event or custom event linked to BindEventToOnClicked for the button within your contruct event in that BP. Use parameters you set to public/expose on spawn in that event to load your level.

This is the code for the child widget. I currently have it to just print, but it is not even doing that.

Apparently, just like the saving issue I had earlier, it now suddenly works. I think I should verify the files of the engine.

1 Like