SOverlay::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/SOverlay.h

Include

#include "Widgets/SOverlay.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Widgets/SOverlay.cpp

Syntax

virtual 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.