Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UWidgetComponent
Description
Sets the widget to use directly. This function will keep track of the widget till the next time it's called with either a newer widget or a nullptr
| Name | SetWidget |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/WidgetComponent.h |
| Include Path | #include "Components/WidgetComponent.h" |
| Source | /Engine/Source/Runtime/UMG/Private/Components/WidgetComponent.cpp |
UFUNCTION (BlueprintCallable, Category=UserInterface)
virtual void SetWidget
(
UUserWidget * Widget
)