Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UWidgetComponent
Description
Sets a Slate widget to be rendered. You can use this to draw native Slate widgets using a WidgetComponent, instead of drawing user widgets.
| Name | SetSlateWidget |
| 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 |
virtual void SetSlateWidget
(
const TSharedPtr < SWidget > & InSlateWidget
)