FSlotBase::DetachWidget

Remove the widget from its current slot.

Choose your operating system:

Windows

macOS

Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/SlotBase.h

Include

#include "SlotBase.h"

Source

/Engine/Source/Runtime/SlateCore/Private/SlotBase.cpp

Syntax

const TSharedPtr< SWidget > DetachWidget()

Remarks

Remove the widget from its current slot. The removed widget is returned so that operations could be performed on it. If the null widget was being stored, an invalid shared ptr is returned instead.