reckfellENGINE

FoldableGroup

Resource coordinating expansion across foldable containers.

On this page
class FoldableGroupReckfellSharpInherits Resource

Assign one FoldableGroup to several FoldableContainer controls. Expanding one folds the others. AllowFoldingAll permits no expanded section; disabling it retains at least one expanded container when members exist.

The group references existing containers rather than creating them or replacing parent layout. GetContainers order does not define UI order.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

FoldableGroupConstructor
# FoldableGroup
C#
public FoldableGroup();

Creates a group resource. Assign this same instance to several FoldableContainer controls; separate new resources do not form one group.

Properties1

AllowFoldingAllProperty
# AllowFoldingAll
C#
public bool AllowFoldingAll { get; set; }

Allows every member to fold. Switching to false with none expanded automatically expands an existing member; selection order is not UI order. This may not emit Expanded/FoldingChanged.

Methods4

GetContainersReckfell.Collections.Array<FoldableContainer>
# GetContainers
C#
public Reckfell.Collections.Array<FoldableContainer> GetContainers();

Returns a new Array<FoldableContainer> referencing members in unspecified order. Mutating the array does not change membership; assign the container’s FoldableGroup. Do not free borrowed containers.

Returns Reckfell.Collections.Array<FoldableContainer>

Returns a new Array<FoldableContainer> referencing members in unspecified order. Mutating the array does not change membership; assign the container’s FoldableGroup. Do not free borrowed containers.

GetExpandedContainerFoldableContainer
# GetExpandedContainer
C#
public FoldableContainer GetExpandedContainer();

Returns the current expanded member or null. In Expanded, the target Folded value may not yet be assigned; use the event argument or defer a state query.

Returns FoldableContainer

Returns the current expanded member or null. In Expanded, the target Folded value may not yet be assigned; use the event argument or defer a state query.

IsAllowFoldingAllbool
# IsAllowFoldingAll
C#
public bool IsAllowFoldingAll();

Allows every member to fold. Switching to false with none expanded automatically expands an existing member; selection order is not UI order. This may not emit Expanded/FoldingChanged.

Returns bool

Allows every member to fold. Switching to false with none expanded automatically expands an existing member; selection order is not UI order. This may not emit Expanded/FoldingChanged.

SetAllowFoldingAllvoid
# SetAllowFoldingAll
C#
public void SetAllowFoldingAll(bool enabled);

Allows every member to fold. Switching to false with none expanded automatically expands an existing member; selection order is not UI order. This may not emit Expanded/FoldingChanged.

Parameters
NameTypeDefault
enabledbool—
enabled

Allow every group member to fold.

Signals and events1

ExpandedEvent
# Expanded
C#
public event FoldableGroup.ExpandedEventHandler Expanded;

Identifies the container being expanded. Emitted before its new Folded value is assigned: an immediate GetExpandedContainer may not yet return it. Not a universal event for every automatic group change.

Handler parameters
NameTypeDefault
containerFoldableContainer—
container

Container being expanded; its new state may not yet be assigned.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.