IncrementalPurgeGarbage

Incrementally purge garbage by deleting all unreferenced objects after routing Destroy.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h

Include

#include "UObject/UObjectGlobals.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/GarbageCollection.cpp

Syntax

void IncrementalPurgeGarbage
(
    bool bUseTimeLimit,
    float TimeLimit
)

Remarks

Incrementally purge garbage by deleting all unreferenced objects after routing Destroy.

Calling code needs to be EXTREMELY careful when and how to call this function as RF_Unreachable cannot change on any objects unless any pending purge has completed!

Parameters

Parameter

Description

bUseTimeLimit

whether the time limit parameter should be used

TimeLimit

soft time limit for this function call

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