#UI Element Not Being Set As Visible - .visible prints as true

2 messages · Page 1 of 1 (latest)

wide hamlet
#

I have a ui element that I would like to show up. I am succesfully calling the below function in my UI script, the SignLabel.text is updating to signtext, but the eye reflecting SignLabel being visible never opens up. I have the below text, and I am using a similar function for another label which is working perfectly.

I believe that for some reason SignLabel.visible is not making the label actually visible, but I don't know how to fix that. Happy to share any other screenshots if useful.

func toggle_streetsign_label(truefalse, signtext): if truefalse == true: SignLabel.text = signtext SignLabel.visible = true print (str(SignLabel.visible)) if truefalse == false: SignLabel.visible = false

wide hamlet
#

I fixed it - the error was in how I found the inputs - i was immediately toggling it back off again by having two 'if_input_is_action_just_pressed'