I have a blueprint with a widget component with several buttons, I want to call a function when a button is clicked, and I want this to be inside of the entire blueprint instead of just the blueprint of the widget. I’m not sure how to have a “when button clicked” event inside of the blueprint.
Here is an image of what I have so far in the bottom left. I am able to have an event for when the widget itself is clicked, which does not work properly. I want to have the “activate door” function called when button 1 is pressed, I have a few blocks that are not compatible with each other. Here is the widget:
There are no errors, but the “activate door” function does not run when I click the button. I know you said “cast to widget class”, as opposed to just the widget. This doesn’t seem to work, since the targets are not compatible: