I’ve created a button widget and set an on clicked event in its Blueprint. I’m then trying to register a click event, but it is not working. Here are screenshots of the Designer and Graph views of the Widget, as well as the Blueprint I am using it in. I am using multiple instances of the actor in the scene. What am I doing wrong?
What am I doing wrong?
Looks like an old trap. The autogenerated delegate event will probably not work here. My best guess:
The widget component is initialised late, after the binding happens.
For this to work you’d need to manually bind on Begin Play.