UWidgetTree::ConstructWidget

Constructs the widget, and adds it to the tree.

Choose your operating system:

Windows

macOS

Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Blueprint/WidgetTree.h

Include

#include "Blueprint/WidgetTree.h"

Syntax

template<typename WidgetT>
WidgetT * ConstructWidget
(
    TSubclassOf< UWidget > WidgetClass,
    FName WidgetName
)

Remarks

Constructs the widget, and adds it to the tree.