SBoxPanel::GetChildren

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

Windows
MacOS
Linux

Override Hierarchy

References

Module

SlateCore

Header

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

Include

#include "Widgets/SBoxPanel.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Widgets/SBoxPanel.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.

Returns

The children of a panel in a slot-agnostic way.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss