Using getToggleStateValue on a TextButton, I’m trying to assign a referTo variable and then a value listener. However, when I click on the button, it doesn’t trigger the listener.
Do TextButtons not have a value change when they are clicked?
Using getToggleStateValue on a TextButton, I’m trying to assign a referTo variable and then a value listener. However, when I click on the button, it doesn’t trigger the listener.
Do TextButtons not have a value change when they are clicked?
TextButtons don’t toggle their state by default, but I think it’d work if you call setClickingTogglesState (true)
Thanks!
I’ll give that a go.
I did set up each click to change the value but it’s best if I can avoid that, I think.