Interfaces and event dispatchers

Stachu1234q2
Mon, 11 Aug 2025 19:47:44 +0000
Blueprint

Hi everyone, I’ve been reworking my UI to use event dispatchers (i was mainly using interfaces before) but I don’t know if I’m doing this correctly.
This is what my main ui widget looks like:

I’ve been always told that casting is terrible and to avoid it at all costs, but I’ve noticed that to use event dispatchers it’s rarely possible to avoid that, so is what I’m doing fine or is there a better way?

Another question I have, weapons in my game call the event dispatchers and the ui responds to them, but that means that the ui has to have a reference to the current weapon, so should i go through the player instead?

And also, for stuff like children wbps talking to their parent, should i get the parent and cast/use an interface, use event dispatchers or in the parent call a function in the child and set the ref that way?

8 posts - 4 participants