Up to date

This page is up to date for Godot 4.3. If you still find outdated information, please open an issue.

FoldableGroup

Inherits: Resource < RefCounted < Object

A group of foldable containers that doesn't allow more than one container to be expanded at a time.

Description

A group of FoldableContainer-derived nodes. No more than one container can be expanded at a time.

Properties

bool

allow_folding_all

false

bool

resource_local_to_scene

true (overrides Resource)

Methods

Array[FoldableContainer]

get_containers()

FoldableContainer

get_expanded_container()


Signals

expanded(container: FoldableContainer) 🔗

Emitted when one of the containers of the group is expanded.


Property Descriptions

bool allow_folding_all = false 🔗

  • void set_allow_folding_all(value: bool)

  • bool is_allow_folding_all()

If true, it is possible to fold all containers in this FoldableGroup.


Method Descriptions

Array[FoldableContainer] get_containers() 🔗

Returns an Array of FoldableContainers who have this as their FoldableGroup (see FoldableContainer.foldable_group).


FoldableContainer get_expanded_container() 🔗

Returns the current expanded container.