Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/ULevel
Description
Flag this level instance for destruction. This is called by UWorld::CleanupWorld to flag the level and its owned packages for destruction.
| Name | CleanupLevel |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Level.h |
| Include Path | #include "Engine/Level.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Level.cpp |
void CleanupLevel
(
bool bCleanupResources,
bool bUnloadFromEditor
)
Parameters
| Name | Remarks |
|---|---|
| bCleanupResources | Whether to uninit anything that was initialized through OnLevelLoaded() |
| bUnloadFromEditor | Whether to also remove RF_Standalone flags in the editor on level-specific subassets so that they can be garbage collected |