UGCObjectReferencer::GetReferencerName

Get the name of the first [FGCObject](API\Runtime\CoreUObject\UObject\FGCObject) that owns this object.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/GCObject.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/Misc/GCObjectReferencer.cpp

Syntax

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

Remarks

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

Returns

true if the object was found.

Parameters

Parameter

Description

Object

The object that we're looking for.

OutName

the name of the FGCObject that reports this object.

bOnlyIfAddingReferenced

Only try to find the name if we are currently inside AddReferencedObjects

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