#How to add button to ButtonGroup with code?

3 messages · Page 1 of 1 (latest)

half breach
#

I am certain it can be done in code but I just can't find it. I tried everything I found on google and chatgpt.
All I want is to create Button.new() and add it to other buttons in my button group. I know about toggle etc. I only struggle with adding it to the group in godot 4.

night geyser
#

is add_to_group(my_group) what you're looking for?