Hi, I have this problem with a widget that doesn’t set visibility when event is fired. can someone tell me what’s wrong with it, is my approach not good?
If anyone can point it out it would be greatly appreciated, thank you
Hi, I have this problem with a widget that doesn’t set visibility when event is fired. can someone tell me what’s wrong with it, is my approach not good?
If anyone can point it out it would be greatly appreciated, thank you
Have you used “On event construct” to troubleshoot the right blueprint?
E.g. execute set visibility(visible) with on construct and see what happens.
Yup I have this same problem. The custom event DOES WORK, but strangely, it does not trigger for my purposes setting a text elements text, nor does it trigger setting the visibility. It does however pass through these nodes and will successfully fire other code in the line.
I am no professional so I am unsure if I am approaching this wrong or it is a glitch but I am kind-of leaning towards it being a glitch simply because why can it not fire those nodes but everything else is fine??
where does “HUDREF” come from?
Player Controller BP talking to UI Widget BP
For me, I have my player controller BP that I can set the “Input Key F” to fire the custom event in my UI BP. The key will work, and it will successfully trigger the custom event that talks to the UI BP. The code in the UI BP however is where the “Set Text (Text)” and “Set Visibility” will not trigger, however any other code connected to them will trigger.
Personally I solved my issue by just doing a check on Tick to trigger it instead, so I don’t necessarily need this resolved for me. But I will note that “Set Text (Text)” and “Set Visibility” do work on Tick, I also noticed they work if I assign it to a UI button click as well. But because mine is specifically to display “GAME OVER” text, I don’t want the player to have to click on a big invisible button after the game ended for the text to display thus why I had to go with the Tick node so it would display immediately on loss. Pretty weird though.