UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TFindObjectReferencers< T > Class Template Reference

#include <FindObjectReferencers.h>

+ Inheritance diagram for TFindObjectReferencers< T >:

Public Member Functions

 TFindObjectReferencers (TArray< T * > TargetObjects, UPackage *PackageToCheck=NULL, bool bIgnoreTemplates=true, bool bFindAlsoWeakReferences=false)
 

Detailed Description

template<class T>
class TFindObjectReferencers< T >

This class is used to find which objects reference any element from a list of "TargetObjects". When invoked, it will generate a mapping of each target object to an array of objects referencing that target object.

Each key corresponds to an element of the input TargetObjects array which was referenced by some other object. The values for these keys are the objects which are referencing them.

Constructor & Destructor Documentation

◆ TFindObjectReferencers()

template<class T >
TFindObjectReferencers< T >::TFindObjectReferencers ( TArray< T * >  TargetObjects,
UPackage PackageToCheck = NULL,
bool  bIgnoreTemplates = true,
bool  bFindAlsoWeakReferences = false 
)
inline

Default constructor

Parameters
TargetObjectsthe list of objects to find references to
PackageToCheckif specified, only objects contained in this package will be searched for references to
bIgnoreTemplatesIf true, do not record template objects
bFindAlsoWeakReferencesIf true, also look into weak references

The documentation for this class was generated from the following file: