ISlateViewport::OnRequestWindowClose

Called when the top level window associated with the viewport has been requested to close.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

ISlateViewport::OnRequestWindowClose()

FSceneViewport::OnRequestWindowClose()

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Rendering/RenderingCommon.h

Include

#include "Rendering/RenderingCommon.h"

Syntax

virtual FReply OnRequestWindowClose()

Remarks

Called when the top level window associated with the viewport has been requested to close. At this point, the viewport has not been closed and the operation may be canceled. This may not called from PIE, Editor Windows, on consoles, or before the game ends from other methods. This is only when the platform specific window is closed.

Returns

FReply::Handled if the close event was consumed (and the window should remain open).