PluginManager.LeakedAssetTrace.RenameLeakedPackages
PluginManager.LeakedAssetTrace.RenameLeakedPackages
#Overview
name: PluginManager.LeakedAssetTrace.RenameLeakedPackages
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Should packages which are leaked after the Game Feature Plugin is unloaded or unmounted.
It is referenced in 2
C++ source files.
#Summary
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Runtime/CoreUObject/Private/Misc/CoreUObjectPluginManager.cpp:64
Scope (from outer to inner):
file
namespace UE::CoreUObject::Private
Source code excerpt:
static bool GRenameLeakedPackages = true;
static FAutoConsoleVariableRef CVarRenameLeakedPackages(
TEXT("PluginManager.LeakedAssetTrace.RenameLeakedPackages"),
GRenameLeakedPackages,
TEXT("Should packages which are leaked after the Game Feature Plugin is unloaded or unmounted."),
ECVF_Default
);
static FAutoConsoleVariableRef CVarRenameLeakedPackagesOldName(
#Loc: <Workspace>/Engine/Source/Runtime/CoreUObject/Tests/PluginManagerTest.cpp:135
Scope (from outer to inner):
file
namespace UE::CoreUObject::Private::Tests
Source code excerpt:
FPlatformFileManager::Get().SetPlatformFile(MockFile);
IConsoleVariable* RenamedLeakedPackages = IConsoleManager::Get().FindConsoleVariable(TEXT("PluginManager.LeakedAssetTrace.RenameLeakedPackages"));
IConsoleVariable* LeakSeverity = IConsoleManager::Get().FindConsoleVariable(TEXT("PluginManager.LeakedAssetTrace.Severity"));
CHECK(RenamedLeakedPackages);
CHECK(LeakSeverity);
bool OldRenameValue = RenamedLeakedPackages->GetBool();
int OldSeverityValue = RenamedLeakedPackages->GetInt();
RenamedLeakedPackages->Set(true);