Setting up event dispatcher between widget and actor blueprint

Hello,

I’m having trouble finding the answer on how have the buttons in my widget communicate with a seperate actor blueprint that is in my level. e.g. press a button and the actor will change material. I’ve found a bunch of tutorials that use event dispatchers but almost all of them use a player blueprint and cast it (get player character > cast to third person character) or they use the level blueprint. But I don’t use a player character, just a widget UI and a seperate actor that responds to it. Can anyone help me out?

Just have a custom event in your actor.

Then in your widget, on click get actor of class and call that custom event you made.

Try this:

Widget:

Actor:

My Products

1 Like