UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
INamedSlotInterface Class Referenceabstract

#include <NamedSlotInterface.h>

+ Inheritance diagram for INamedSlotInterface:

Public Member Functions

virtual void GetSlotNames (TArray< FName > &SlotNames) const =0
 
virtual UWidgetGetContentForSlot (FName SlotName) const =0
 
virtual void SetContentForSlot (FName SlotName, UWidget *Content)=0
 
UMG_API bool ContainsContent (UWidget *Content) const
 
UMG_API FName FindSlotForContent (UWidget *Content) const
 
UMG_API void ReleaseNamedSlotSlateResources (bool bReleaseChildren)
 

Member Function Documentation

◆ ContainsContent()

bool INamedSlotInterface::ContainsContent ( UWidget Content) const

Determines if any slot holds the given widget.

◆ FindSlotForContent()

FName INamedSlotInterface::FindSlotForContent ( UWidget Content) const

Determines if any slot holds the given widget and the name of that slot.

◆ GetContentForSlot()

virtual UWidget * INamedSlotInterface::GetContentForSlot ( FName  SlotName) const
pure virtual

Gets the widget for a given slot by name, will return nullptr if no widget is in the slot.

Implemented in UUserWidget, UWidgetTree, and UExpandableArea.

◆ GetSlotNames()

virtual void INamedSlotInterface::GetSlotNames ( TArray< FName > &  SlotNames) const
pure virtual

Gets the names for slots that we can store widgets into.

Implemented in UUserWidget, UWidgetTree, and UExpandableArea.

◆ ReleaseNamedSlotSlateResources()

void INamedSlotInterface::ReleaseNamedSlotSlateResources ( bool  bReleaseChildren)

Releases named slot related resources.

◆ SetContentForSlot()

virtual void INamedSlotInterface::SetContentForSlot ( FName  SlotName,
UWidget Content 
)
pure virtual

Sets the widget for a given slot by name.

Implemented in UUserWidget, UWidgetTree, and UExpandableArea.


The documentation for this class was generated from the following files: