CommonUIUtils::GetOwningUserWidget

Traverses the UserWidgets that the given widget resides in until we find one matching the given type (or we run out of parents)

Windows
MacOS
Linux

References

Module

CommonUI

Header

/Engine/Plugins/Experimental/CommonUI/Source/CommonUI/Public/CommonUIUtils.h

Include

#include "CommonUIUtils.h"

Syntax

namespace CommonUIUtils
{
    template<typename UserWidgetT>
    UserWidgetT * CommonUIUtils::GetOwningUserWidget
    (
        const UWidget * Widget
    )
}

Remarks

Traverses the UserWidgets that the given widget resides in until we find one matching the given type (or we run out of parents)

Returns

The first parent of the given type, or nullptr if there is none

Parameters

Parameter

Description

Widget

The widget whose parent we're seeking

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