SWidget::FindChildGeometries

Find the geometry of a descendant widget.

Windows
MacOS
Linux

References

Module

SlateCore

Header

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

Include

#include "Widgets/SWidget.h"

Source

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

Syntax

bool FindChildGeometries
(
    const FGeometry & MyGeometry,
    const TSet< TSharedRef< SWidget > > & WidgetsToFind,
    TMap< TSharedRef< SWidget >, FArrangedWidget > & OutResult
) const

Remarks

Find the geometry of a descendant widget. This method assumes that WidgetsToFind are a descendants of this widget.

that not all widgets are guaranteed to be found; OutResult will contain null entries for missing widgets.

Returns

True if all the WidgetGeometries were found. False otherwise.

Parameters

Parameter

Description

MyGeometry

The geometry of this widget.

WidgetsToFind

The widgets whose geometries we wish to discover.

OutResult

A map of widget references to their respective geometries.

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