W3cubDocs

/Godot 3.1

ButtonGroup

Inherits: Resource < Reference < Object

Category: Core

Brief Description

Group of Buttons.

Methods

Array get_buttons ( )
BaseButton get_pressed_button ( )

Description

Group of Button. All direct and indirect children buttons become radios. Only one allows being pressed.

BaseButton.toggle_mode should be true.

Method Descriptions

Array get_buttons ( )

Returns an Array of Buttons who have this as their ButtonGroup (see BaseButton.group).

BaseButton get_pressed_button ( )

Returns the current pressed button.

© 2014–2019 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.1/classes/class_buttongroup.html