Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UWidgetComponent
Description
Gets the widget that is used by this Widget Component. It will be null if a Slate Widget was set using SetSlateWidget function.
| Name | GetWidget |
| 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 UUserWidget * GetWidget() const