How to acces Customevent from Widget

Hello, i am trying to access a customevent from a Widget. But it needs a target and i do not know how to access the cube from within the widgetblueprint.
Thanks for any advice


you have different ways to access an actor from a widget blueprint and is the same as access an actor from another actor.

if you actor is the only instance of its class you can get by class and get the first item of the array result:

you can add a tag to your actor and get all actors with tag, cast to the class of the actor and expose:

you can put your actor in a common blueprint like your gamemode and call from it:

you can create an event dispatch in your widget, bind to the actor and call the dispatch instead

you can put your actor in a variable of the widget:

image

there may be even more ways to do so

1 Like

Thanks a lot for your great support! that helped me a lot!
It works now :slight_smile: