Navigation
API > API/Runtime > API/Runtime/CoreUObject
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.
| Name | UGCObjectReferencer |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/GCObject.h |
| Include Path | #include "UObject/GCObject.h" |
Syntax
UCLASS (Transient, MinimalAPI)
class UGCObjectReferencer : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UGCObjectReferencer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UGCObjectReferencer
(
const FObjectInitializer& ObjectInitializer |
UObject/GCObject.h | ||
UGCObjectReferencer
(
FVTableHelper& Helper |
UObject/GCObject.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~UGCObjectReferencer() |
UObject/GCObject.h |
Structs
| Name | Remarks |
|---|---|
| FImpl |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CurrentlySerializingObject | FGCObject * | Current FGCObject* that references are being added from | UObject/GCObject.h | |
| Impl | TUniquePtr< FImpl > | UObject/GCObject.h | ||
| OnGCObjectAdded | FGCObjectAddedDelegate | Called when a new FGCObject is added to this referencer | UObject/GCObject.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| UObject/GCObject.h | |||
void AddObject
(
FGCObject* Object |
Adds an object to the referencer list | UObject/GCObject.h | |
DECLARE_TS_MULTICAST_DELEGATE_OneParam
(
FGCObjectAddedDelegate, |
Called when a new FGCObject is added to this referencer | UObject/GCObject.h | |
FGCObject * GetCurrentlySerializingObject() |
Returns the currently serializing object | UObject/GCObject.h | |
FGCObjectAddedDelegate & GetGCObjectAddedDelegate() |
Returns a delegate called when a new FGCObject is added to this referencer | UObject/GCObject.h | |
| Get the name of the first FGCObject that owns this object. | UObject/GCObject.h | ||
void RemoveObject
(
FGCObject* Object |
Removes an object from the referencer list | UObject/GCObject.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void FinishDestroy () |
Destroy function that gets called before the object is freed. | UObject/GCObject.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void AddReferencedObjects
(
UObject* InThis, |
Forwards this call to all registered objects so they can reference any UObjects they depend upon | UObject/GCObject.h |