Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/LevelStreamingGCHelper.h |
Include | #include "Engine/LevelStreamingGCHelper.h" |
Syntax
struct FLevelStreamingGCHelper
Remarks
Helper structure encapsulating functionality used to defer marking actors and their components as pending kill till right before garbage collection by registering a callback.
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Register with the garbage collector to receive callbacks pre and post garbage collection | |
![]() ![]() |
void | CancelUnloadRequest
(
ULevel* InLevel |
Cancel any pending unload requests for passed in Level. |
![]() ![]() |
void | Allows FLevelStreamingGCHelper to be used in a commandlet. | |
![]() ![]() |
int32 | ||
![]() ![]() |
void | RequestUnload
(
ULevel* InLevel |
Request to be unloaded. |
![]() ![]() |
void | TrashPackage
(
UPackage* InPackage |
Trash a package, making sure it will be reloaded if needed again by level streaming |
Typedefs
Name | Description |
---|---|
FOnGCStreamedOutLevelsEvent | Called when streamed out levels are going to be garbage collected |
Constants
Name | Description |
---|---|
bEnabledForCommandlet | Static bool allows FLevelStreamingGCHelper to be used in a commandlet |
bIsPrepareStreamedOutLevelForGCDelayedToWorldTickEnd | Whether RequestUnload delayed its call to PrepareStreamedOutLevelForGC after world tick. |
LevelPackageNames | Static set of level packages that have been marked by PrepareStreamedOutLevelsForGC |
LevelsPendingUnload | Static array of levels that should be unloaded |
NumberOfPreparedStreamedOutLevelsForGC | The number of unloaded levels prepared for the next GC (used by GetNumLevelsPendingPurge). |
OnGCStreamedOutLevels |