Navigation
API > API/Runtime > API/Runtime/UMG
Allows you to expose an external slot for your user widget. When others reuse your user control, they can put whatever they want in this named slot.
| Name | UNamedSlot |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/NamedSlot.h |
| Include Path | #include "Components/NamedSlot.h" |
Syntax
UCLASS (MinimalAPI)
class UNamedSlot : public UContentWidget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UVisual → UWidget → UPanelWidget → UContentWidget → UNamedSlot
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UNamedSlot
(
const FObjectInitializer& ObjectInitializer |
Components/NamedSlot.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bExposeOnInstanceOnly | bool | Named slots exposed on the instance only follow a slightly different set of rules. | Components/NamedSlot.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| SlotGuid | FGuid | Components/NamedSlot.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FGuid GetSlotGUID() |
Components/NamedSlot.h |
Overridden from UPanelWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnSlotAdded
(
UPanelSlot* Slot |
Components/NamedSlot.h | ||
virtual void OnSlotRemoved
(
UPanelSlot* Slot |
Components/NamedSlot.h |
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FText GetPaletteCategory() |
Gets the palette category of the widget | Components/NamedSlot.h |
Overridden from UVisual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ReleaseSlateResources
(
bool bReleaseChildren |
Components/NamedSlot.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostLoad() |
Begin UObject. | Components/NamedSlot.h | |
virtual void Serialize
(
FArchive& Ar |
Components/NamedSlot.h |
Protected
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/NamedSlot.h |