FLevelStreamingGCHelper

Helper structure encapsulating functionality used to defer marking actors and their components as pending kill till right before garbage collection by registering a callback.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/World.h

Include

#include "Engine/World.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

Name Description

Public function Static

void

 

AddGarbageCollectorCallback()

Register with the garbage collector to receive callbacks pre and post garbage collection

Public function Static

void

 

CancelUnloadRequest

(
    ULevel* InLevel
)

Cancel any pending unload requests for passed in Level.

Public function Static

int32

 

GetNumLevelsPendingPurge()

Public function Static

void

 

PrepareStreamedOutLevelsForGC()

Prepares levels that are marked for unload for the GC call by marking their actors and components as pending kill.

Public function Static

void

 

RequestUnload

(
    ULevel* InLevel
)

Request to be unloaded.

Public function Static

void

 

VerifyLevelsGotRemovedByGC()

Verify that the level packages are no longer around.

Typedefs

Name

Description

FOnGCStreamedOutLevelsEvent

Called when streamed out levels are going to be garbage collected

Constants

Name

Description

LevelPackageNames

Static array of level packages that have been marked by PrepareStreamedOutLevelsForGC

LevelsPendingUnload

Static array of levels that should be unloaded

OnGCStreamedOutLevels

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