Image Opacity doesn't change on button press

I got the following setup:

When I press Q it’s supposed to clear a picture and set a text in the upper left corner of the screen. The text is set correctly but the picture stays instead of going invisible. Any reason why?
The picture itself is set to “Volatile” in the UMG editor because it changes a lot throughout the game, but not every frame. When I do it the other way around of setting Opacity to 1 it works just fine.

Volatile is not important unless you’re using the invalidation panel. You should use Visibility for controlling visible-ness, things with a 0 opacity are still ticked, laid out, painted…etc. Not sure why 0 isn’t working for you though. Maybe you’re setting it somewhere else as well?

I do a Line Trace to look at things around the world, and if I find something of a specific kind I change the picture. But when I used “Set Visible” it didn’t do anything either so after a bit of tinkering I found that setting Opacity to 0 when the Widget is made solved the problem, because then I could just set opacity to 1 when I wanted to show a picture. But setting it to 0 does nothing.

After using “Set visibility” again it suddenly worked.