Image visibility in widget not working

i’m trying to make a button that picks two random variables when it’s picked.


then i’m trying to set the visibility of a photo using an if statement basically saying if random number and room = 0 then the visibility = true if else not visible.

when the button is pressed the image does disappear, but so does the buttons that set the variable and i need them to be visible.

thank you, Alasdair

Why are you using a variable to set Visibility value and then output the function with that instead of return the value direc like this?

What do you do with the results of that function?
Can you share the rest of the logic?

hi @Sunsetlettuce93

check you havent parented the other widget objects like the text to the image. visibilty usually propagates through to children.

Just a thought

I managed to fix it by changing the arrows that you press from an image to a button