Navigation
API > API/Runtime > API/Runtime/CoreUObject
Structure containing information about a UObject participating in Garbage Collection. It's purpose is to avoid holding onto direct references to UObjects which may have already been Garbage Collected. FGCObjectInfo interface mimics that of UObject.
| Name | FGCObjectInfo |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/GCObjectInfo.h |
| Include Path | #include "UObject/GCObjectInfo.h" |
Syntax
class FGCObjectInfo
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FGCObjectInfo
(
const UObject* Obj |
UObject/GCObjectInfo.h | ||
| UObject/GCObjectInfo.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bDisregardForGC | bool | True if the object was inside of the disregard for GC set | UObject/GCObjectInfo.h | |
| Class | FGCObjectInfo * | Pointer to class info | UObject/GCObjectInfo.h | |
| ClusterRootIndex | int32 | Object's FGCObjectItem cluster root index | UObject/GCObjectInfo.h | |
| Flags | EObjectFlags | Captured Object flags | UObject/GCObjectInfo.h | |
| InternalFlags | EInternalObjectFlags | Captured Internal flags | UObject/GCObjectInfo.h | |
| Name | FName | Name of the object | UObject/GCObjectInfo.h | |
| Outer | FGCObjectInfo * | Pointer to Outer info | UObject/GCObjectInfo.h | |
| RefCount | int32 | Current ref-count of the UObject. | UObject/GCObjectInfo.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FGCObjectInfo * GetClass() |
UObject/GCObjectInfo.h | ||
FString GetClassName() |
UObject/GCObjectInfo.h | ||
FString GetFullName() |
UObject/GCObjectInfo.h | ||
FGCObjectInfo * GetOuter() |
UObject/GCObjectInfo.h | ||
int32 GetOwnerIndex() |
UObject/GCObjectInfo.h | ||
FString GetPathName () |
UObject/GCObjectInfo.h | ||
void GetPathName
(
FStringBuilderBase& ResultString |
UObject/GCObjectInfo.h | ||
int32 GetRefCount() |
UObject/GCObjectInfo.h | ||
bool HasAnyFlags
(
EObjectFlags InFlags |
UObject/GCObjectInfo.h | ||
bool HasAnyInternalFlags
(
EInternalObjectFlags InFlags |
UObject/GCObjectInfo.h | ||
bool IsDisregardForGC() |
UObject/GCObjectInfo.h | ||
bool IsGarbage() |
UObject/GCObjectInfo.h | ||
bool IsIn
(
const FGCObjectInfo* MaybeOuter |
UObject/GCObjectInfo.h | ||
bool IsNative() |
UObject/GCObjectInfo.h | ||
bool IsRooted() |
UObject/GCObjectInfo.h | ||
bool IsValid() |
UObject/GCObjectInfo.h | ||
UObject * TryResolveObject() |
Tries to find an existing object matching the stored Path. | UObject/GCObjectInfo.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FGCObjectInfo * FindOrAddInfoHelper
(
const UObject* InObject, |
Helper function for adding info about an UObject into UObject to FGCObjectInfo map | UObject/GCObjectInfo.h |