FReferenceCollector::AddReferencedObjects

Adds references to an array of const objects, these objects can still be nulled out if forcefully collected.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/UObjectGlobals.h"

Syntax

template<class UObjectType>
void AddReferencedObjects
(
    TArray< const UObjectType * > & ObjectArray,
    const UObject * ReferencingObject,
    const FProperty * ReferencingProperty
)

Remarks

Adds references to an array of const objects, these objects can still be nulled out if forcefully collected.

Parameters

Parameter

Description

ObjectArray

Referenced objects array.

ReferencingObject

Referencing object (if available).

ReferencingProperty

Referencing property (if available).

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