Event dispatchers doesn't appear

Hello, I have called an event dispatcher in my HUD.

But, when I want add this event in my level blueprint, it doesn’t appear.

Why?

You need to have a reference to your HUD in order to bind to it’s event dispatcher. Because HUD’s are not readily available in level until the game is underway, you will need to do something like this in order to access it properly.

Hope this helps!
-Spiris

I did it, but when I compile, there is a warning.

You are using UMG. Just get the UserWidget instead of the HUD object.
HUD classes are old and recommended to be used only for fast prototyping.

You probably add your HUD object (derived from User Widget) somewhere. Be sure to keep a reference to it so you can bind to it

So, how I can fix it ?

Where are you spawning your widget in the world? If it is on a player controller, you would get it off of your player controller, like the HUD class. If it has a reference stored on a pawn, you would get that pawn and grab the reference from it, and so on.

That works, thanks.