SPanel::GetChildren

All widgets must provide a way to access their children in a layout-agnostic way.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Widgets/SPanel.h

Include

#include "Widgets/SPanel.h"

Syntax

FChildren * GetChildren()

Remarks

All widgets must provide a way to access their children in a layout-agnostic way. Panels store their children in Slots, which creates a dilemma. Most panels can store their children in a TPanelChildren, where the Slot class provides layout information about the child it stores. In that case GetChildren should simply return the TPanelChildren. See StackPanel for an example.