UGCObjectReferencer

This nested class is used to provide a [UObject](API\Runtime\CoreUObject\UObject\UObject) interface between non [UObject](API\Runtime\CoreUObject\UObject\UObject) classes and the [UObject](API\Runtime\CoreUObject\UObject\UObject) system.

Windows
MacOS
Linux

Inheritance Hierarchy

UObjectBase

UObjectBaseUtility

UObject

UGCObjectReferencer

References

Module

CoreUObject

Header

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

Include

#include "UObject/GCObject.h"

Syntax

class UGCObjectReferencer : public UObject

Remarks

This nested class is used to provide a UObject interface between non UObject classes and the UObject system. It handles forwarding all calls of AddReferencedObjects() to objects/ classes that register with it.

Constructors

Name Description

Public function

UGCObjectReferencer

(
    const FObjectInitializer& ObjectIn...
)

Public function

UGCObjectReferencer

(
    FVTableHelper& Helper
)

DO NOT USE. This constructor is for internal usage only for hot-reload purposes.

Functions

Name Description

Public function Static

void

 

__DefaultConstructor

(
    const FObjectInitializer& X
)

Public function Static

UObject *...

 

__VTableCtorCaller

(
    FVTableHelper& Helper
)

Public function

void

 

AddObject

(
    FGCObject* Object
)

Adds an object to the referencer list

Public function Static

void

 

AddReferencedObjects

(
    UObject* InThis,
    FReferenceCollector& Collector
)

Forwards this call to all registered objects so they can reference any UObjects they depend upon

Public function Const

bool

 

GetReferencerName

(
    UObject* Object,
    FString& OutName,
    bool bOnlyIfAddingReferenced
)

Get the name of the first FGCObject that owns this object.

Public function

void

 

RemoveObject

(
    FGCObject* Object
)

Removes an object from the referencer list

Public function Static

UClass *

 

StaticClass()

Returns a UClass object representing this class at runtime

Public function Static

EClassCastFl...

 

StaticClassCastFlags()

Returns the static cast flags for this class

Public function Static

const TCHAR ...

 

StaticPackage()

Returns the package this class belongs in

Public function Static

void

 

StaticRegisterNativesUGCObjectReferencer()

Overridden from UObject

Name Description

Public function Virtual

void

 

FinishDestroy()

Destroy function that gets called before the object is freed.

Operators

Name Description

Public function

void *

 

operator new

(
    const size_t InSize,
    EInternal* InMem
)

For internal use only; use StaticConstructObject() to create new objects.

Public function

void *

 

operator new

(
    const size_t InSize,
    EInternal InInternalOnly,
    UObject* InOuter,
    FName InName,
    EObjectFlags InSetFlags
)

For internal use only; use StaticConstructObject() to create new objects.

Typedefs

Name

Description

Super

Typedef for the base class (UObject)

ThisClass

Typedef for UGCObjectReferencer.

Constants

Name

Description

StaticClassFlags

Bitwise union of EClassFlags pertaining to this class.

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