I can’t get my BPI to work with UMG widget. The event is placed in the widget blueprint, messenger is a trigger box. When I move event to another BP, for example my character, it works fine, so the problem seems to be widget BP.
I keep finding unanswered questions in these forums. Yours was posted 12 months ago! It’s a bit disappointing, huh.
Never tried with BP interface, but simple cast to a «your_BP_widget» seem more appropriate for me.
Thanks Xosh! I’m unsure what ‘object’ a widget cast requires… Any ideas?
I have created interface, added to Widget and called it - working as intended. How are you calling interface on the widget?
My widget is already created in a character BP, elsewhere. So I figured I shouldn’t create it again here in my CameraPawnBP.
As it’s already created, I’ve been trying to get it like this:
(That’s inside a Reference Casts macro, by the way… It runs as part of Event BeginPlay).
Then, also in the CameraPawnBP, I’m sending the interface message to the widget like this:
But over in the widget, the printstring isn’t printing to say that it’s received the message:
For clarification: It’s a CameraPawnControllerBP… Not a CameraPawnBP.
You are sure that CommanderHUDRef isn’t null? Add a print string there with name of it.
Btw if you copied interface event from different blueprint it won’t work, you need to add it again by hand.