#Do button groups not work on scenes?

1 messages · Page 1 of 1 (latest)

deft rock
#

I was messing around with buttons and the button groups and it works if I just do regular buttons that aren't scenes with the godot sprite being normal and the little robot being pressed. It toggles between the buttons and deactivates the button if another is pressed but if I use a button scene and then add those button scenes to a group they don't toggle off each other. Confused if this is just how godot works or if I'm missing something simple. Thank you!

kind chasm
#

they are all in the same group right?

deft rock
#

yes

kind chasm
#

how do you know they are in the same group

deft rock
#

I selected them all and then dragged the group resource I made into the group box. i checked each one after

#

its the same thing I did with just the regular buttons and that worked

kind chasm
#

ok

#

you dragged in groupies.tres?

#

then it should say "groupies" in the property on the texturebutton, not ButtonGroup

deft rock
#

it changes to buttongroup after I run the scene

#

hold on let me test rq

kind chasm
#

weird, it doesn't do that for me

deft rock
#

yea i double checked they're both added to the groupies group but I can still toggle both

kind chasm
#

hmm i'm not sure then

deft rock
#

yea regular ones work

kind chasm
#

they are in the groupies.tres group in the scene the buttons are instanced in?

deft rock
#

no let me try that

#

I tried that earlier if you put the group in the scene itself it shows as buttongroup in the main scene thats what I meant earlier. Running it doesnt change it

kind chasm
#

oh okay that's weird

#

they still appear to be the same buttongroup for me though, even when instanced

deft rock
#

all I'm doing is dragging it in from the project manager

#

it changes for whatever reason idk

#

idek why I want to do this honestly Im just confused on why its not working

kind chasm
#

me too