Blueprint to widget blueprint communication not working

326763-just.png

326764-end-me-please.png

Hi everyone,

For half a week i was trying to implement a way to play a widget animation whenever the player would get to a specific part of the map. I wasn’t able to do it since i don’t know why when i declare the variable that is use to target the objective widget “Objective_UI” i cannot call the function “Objective Called”.

Please someone put me out of my misery

Did you try a print string in the widget?

I tried what you did and it works, but still the animation won’t play for some reason. I even tried in a totally different project in case something was wrong with my project, but without success. I did add the widget to the viewport so i dont get why it doesn’t work. I replaced the animation with playing a sound and STILL no sound would be played, so the problem must be with the bp to bp communication thing. I even tried using interfaces but nothing seemed to work.

Yep i did, still nothing

4.25 I can only guess a bug with the engine at this point

Do you need more screenshots of variables or anything else that may lead to a potential fix? maybe i got something wrong somewhere

If you zip up a small version of the project, I can download it from somewhere and take a look, but that’s about it…

As long as the widget is present, you can get at it like this:

326802-screenshot-1.jpg

Before your fix there was an accessed none error caused by the variable not having a value, but now nothing comes up whenever i stop the game

Which engine version?

I just tested it with 4.25, no problem…

And no errors when you stop the game?

I Would need your gmail so i can share with you the zip file

not the same code. don’t do it with BPI, you’re complicating things.

Just make a direct call on the widget first :slight_smile:

EDIT: In the project I got you hadn’t added the BPI to the widget, which would explain why it’s not working that way.

How can I do that

-edit nvm i figured it out

Make a new project of the same type ( first / third person ). In your current project, migrate the actor with the overlap event in to the new project ( right click in content browser ). That will also migrate the widget.

Then zip up the ( new ) project:

and put it somewhere like google drive.

Here is the link :

https://www.mediafire.com/file/5n2cvdzwdbe1wyj/I_require_assistance.zip/file

Cool. Don’t hold your breath, it’s a slow download…

Don’t worry, I looked for 4 days for an answer, a couple of hours are nothing :slight_smile:

I don’t know why but even copying the exact same code it still doesn’t work. when i look at the bp when the game is running, i see the connections getting red whenever i go to the trigger box but when i look at the widget, there isn’t anything there.

. I suppose something is wrong with the installed engine version I have because otherwise nothing makes sense. I’ll install the newer version of the engine so i can be sure its not a bug of the engine and will tell you if it fixed the problem