FGCObject

This class provides common registration for garbage collection for non-UObject classes.

Windows
MacOS
Linux

Inheritance Hierarchy

FGCObject

ConstructorHelpers::FClassFinder

ConstructorHelpers::FObjectFinder

ConstructorHelpers::FObjectFinderOptional

FActorFolders

FAnimationRecorder

FARSupportInterface

FAssetEditorManager

FAssetEditorToolkit::FGCEditingObjects

FAsyncPackage

FBlueprintActionDatabase

FBlueprintCompileReinstancer

FBlueprintEditor

FGameplayAbilitiesEditor

FWidgetBlueprintEditor

IAnimationBlueprintEditor

IControlRigEditor

FBlueprintNodeTemplateCache

FConsolidationResults

FDeferredCleanupSlateBrush

FDistanceFieldAsyncQueue

FEditorModeTools

FAssetEditorModeManager

IPersonaEditorModeManager

FEditorViewportClient

FLevelEditorViewportClient

FEdMode

FEdModeDefault

FEdModeGeometry

FEdModeInterpEdit

FEdModeTexture

FFractureEditorMode

FPhysicsDebugMode

FPhysicsManipulationEdMode

FSampleToolsEditorMode

IMeshPaintEdMode

FEdModeMeshPaint

IPersonaEditMode

IAnimNodeEditMode

FAnimNodeEditMode

IPlacementMode

FFindReferencedAssets

FForceFeedbackManager

FFractureEditorModeToolkit

FGCObjectScopeGuard

FGeomComponentCacheParametersCustomization

FGeomObject

FGridWidget

FHoloLensARSystem

FInternalReferenceCollector

FLandscapeBrush

FLandscapeTool

FNiagaraEditorModule

FNiagaraSystemViewModel

FNiagaraWorldManager

FParticleSystemWorldManager

FPreviewScene

FAdvancedPreviewScene

IPersonaPreviewScene

FThumbnailPreviewScene

FAnimationSequenceThumbnailScene

FAnimBlueprintThumbnailScene

FBlendSpaceThumbnailScene

FClassActorThumbnailScene

FBlueprintThumbnailScene

FClassThumbnailScene

FGeometryCacheThumbnailScene

FGeometryCollectionThumbnailScene

FMaterialThumbnailScene

FParticleSystemThumbnailScene

FPhysicsAssetThumbnailScene

FSkeletalMeshThumbnailScene

FStaticMeshThumbnailScene

FQosInterface

FReimportManager

FRepLayout

FSequencerKeyStructGenerator

FSignificanceManagerModule

FSlateGameResources

FSlateWindowElementList::FWindowElementGCObject

FSoundWavePCMLoader

FStandaloneCompositeFont

FStreamableManager

FSubsystemCollectionBase

FSubsystemCollection

FUMGDragDropOp

FViewport::FHitProxyMap

FVoiceEngineImpl::FVoiceSerializeHelper

FWidget

SCurveEditor

SGraphActionMenu

SGraphPanel

SInvalidationPanel

SMediaImage::FInternalReferenceCollector

SMeshWidget

SObjectWidget

SObjectTableRow

TGCObjectsScopeGuard

TPartyDataReplicator

References

Module

CoreUObject

Header

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

Include

#include "UObject/GCObject.h"

Syntax

class FGCObject

Remarks

This class provides common registration for garbage collection for non-UObject classes. It is an abstract base class requiring you to implement the AddReferencedObjects() method.

Constructors

Name Description

Public function

FGCObject()

Tells the global object that forwards AddReferencedObjects calls on to objects that a new object is requiring AddReferencedObjects call.

Public function

FGCObject

(
    FGCObject const&
)

Copy constructor

Public function

FGCObject

(
    FGCObject&&
)

Move constructor

Destructors

Name Description

Public function Virtual

~FGCObject()

Removes this instance from the global referencer's list

Functions

Name Description

Public function

void

 

AddReferencedObjects

(
    FReferenceCollector& Collector
)

Pure virtual that must be overloaded by the inheriting class.

Public function Virtual Const

FString

 

GetReferencerName()

Use this method to report a name for your referencer.

Public function Virtual Const

bool

 

GetReferencerPropertyName

(
    UObject* Object,
    FString& OutPropertyName
)

Use this method to report how the specified object is referenced, if necessary

Public function Static

void

 

StaticInit()

Initializes the global object referencer and adds it to the root set.

Constants

Name

Description

GGCObjectReferencer

The static object referencer object that is shared across all garbage collectible non-UObject objects.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback