SWidgetSwitcher::RemoveSlot

Removes a slot with the corresponding widget in it.

Windows
MacOS
Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Layout/SWidgetSwitcher.h

Include

#include "Widgets/Layout/SWidgetSwitcher.h"

Source

/Engine/Source/Runtime/Slate/Private/Widgets/Layout/SWidgetSwitcher.cpp

Syntax

int32 RemoveSlot
(
    TSharedRef< SWidget > WidgetToRemove
)

Remarks

Removes a slot with the corresponding widget in it. Returns the index where the widget was found, otherwise -1.

Parameters

Parameter

Description

Widget

The widget to find and remove.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss