SWidget::OnVisualizePopup

Visualize a new pop-up if possible.

Windows
MacOS
Linux

Override Hierarchy

SWidget::OnVisualizePopup()

SWindow::OnVisualizePopup()

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Widgets/SWidget.h

Include

#include "Widgets/SWidget.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Widgets/SWidget.cpp

Syntax

virtual TSharedPtr< FPopupLayer > OnVisualizePopup
(
    const TSharedRef< SWidget > & PopupContent
)

Remarks

Visualize a new pop-up if possible. If it's not possible for this widget to host the pop-up content you'll get back an invalid pointer to the layer. The returned FPopupLayer allows you to remove the pop-up when you're done with it

Returns

a valid FPopupLayer if this widget supported hosting it. You can call Remove() on this to destroy the pop-up.

Parameters

Parameter

Description

PopupContent

The widget to try and host overlaid on top of the widget.

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