Navigation
API > API/Runtime > API/Runtime/UMG
A NativeWidgetHost is a container widget that can contain one child slate widget. This should be used when all you need is to nest a native widget inside a UMG widget.
| Name | UNativeWidgetHost |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/NativeWidgetHost.h |
| Include Path | #include "Components/NativeWidgetHost.h" |
Syntax
UCLASS (MinimalAPI)
class UNativeWidgetHost : public UWidget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UVisual → UWidget → UNativeWidgetHost
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UNativeWidgetHost
(
const FObjectInitializer& ObjectInitializer |
Components/NativeWidgetHost.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedPtr< SWidget > GetContent() |
Components/NativeWidgetHost.h | ||
void SetContent
(
TSharedRef< SWidget > InContent |
Components/NativeWidgetHost.h |
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FText GetPaletteCategory() |
Gets the palette category of the widget | Components/NativeWidgetHost.h |
Overridden from UVisual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ReleaseSlateResources
(
bool bReleaseChildren |
Components/NativeWidgetHost.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedRef< SWidget > GetDefaultContent() |
Components/NativeWidgetHost.h |
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedRef< SWidget > RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | Components/NativeWidgetHost.h |