Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/SWidgetSwitcher
Description
Removes a slot with the corresponding widget in it. Returns the index where the widget was found, otherwise -1.
| Name | RemoveSlot |
| Type | function |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SWidgetSwitcher.h |
| Include Path | #include "Widgets/Layout/SWidgetSwitcher.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Widgets/Layout/SWidgetSwitcher.cpp |
int32 RemoveSlot
(
TSharedRef < SWidget > WidgetToRemove
)
Parameters
| Name | Remarks |
|---|---|
| Widget | The widget to find and remove. |