
Descripción
Only tested in UE5.7 but it might work with all UE5 versions!
This plugin hooks into Unreal’s core object lifecycle by listening to custom events tied to the GC and the GUObjectArray. From the moment the editor session starts, the plugin tracks per-class statistics in real time:
- Instanced: how many objects of a given class have been created.
- GC Destroyed: how many were actually reclaimed by Unreal’s garbage collector.
- Alive: how many are still alive at the current moment.
This makes it easy to detect memory and lifetime issues early. For example, if a class shows a very high number of instantiated objects but very few GC destructions, it strongly suggests that something is unexpectedly holding references and preventing those objects from being collected.
On top of the global stats, GC Viewer also provides contextual debugging. When an actor or object is selected in the level, the plugin can display its reference chains, including Outer relationships, showing the full paths from GC roots down to the selected object. This makes it clear why the object is still alive and which ownership or reference relationships are anchoring it in memory.
Usage Instructions
Enable the plugin in the Editor
Restart Unreal Engine if prompted
Open the tool via:
Window → Garbage Collector ViewerUse the left panel to inspect live UObject statistics
Select an Actor in the editor to view its reference chains
Use Force GC to manually trigger garbage collection
Version 1.1
Use Take GC Snapshot to save a snapshot in csv format in projectDir/GCViewerSnapshots