UUserWidget::OnLevelRemovedFromWorld

Called when a top level widget is in the viewport and the world is potentially coming to and end.

Windows
MacOS
Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h

Include

#include "Blueprint/UserWidget.h"

Source

/Engine/Source/Runtime/UMG/Private/UserWidget.cpp

Syntax

virtual void OnLevelRemovedFromWorld
(
    ULevel * InLevel,
    UWorld * InWorld
)

Remarks

Called when a top level widget is in the viewport and the world is potentially coming to and end. When this occurs, it's not save to keep widgets on the screen. We automatically remove them when this happens and mark them for pending kill.

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