UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FContentComparisonHelper Class Reference

#include <EngineUtils.h>

Public Member Functions

 FContentComparisonHelper ()
 
virtual ~FContentComparisonHelper ()
 
virtual bool CompareClasses (const FString &InBaseClassName, int32 InRecursionDepth)
 
virtual bool CompareClasses (const FString &InBaseClassName, const TArray< FString > &InBaseClassesToIgnore, int32 InRecursionDepth)
 
void RecursiveObjectCollection (UObject *InStartObject, int32 InCurrDepth, int32 InMaxDepth, TMap< UObject *, bool > &OutCollectedReferences)
 

Protected Attributes

TMap< FString, boolReferenceClassesOfInterest
 

Detailed Description

Helper class for performing the content comparison console command

Constructor & Destructor Documentation

◆ FContentComparisonHelper()

FContentComparisonHelper::FContentComparisonHelper ( )

◆ ~FContentComparisonHelper()

FContentComparisonHelper::~FContentComparisonHelper ( )
virtual

Member Function Documentation

◆ CompareClasses() [1/2]

bool FContentComparisonHelper::CompareClasses ( const FString &  InBaseClassName,
const TArray< FString > &  InBaseClassesToIgnore,
int32  InRecursionDepth 
)
virtual

Compare the classes derived from the given base class, ignoring specified base classes.

Parameters
InBaseClassNameThe base class to perform the comparison on.
InBaseClassesToIgnoreThe base classes to ignore when processing objects.
InRecursionDepthHow deep to recurse when walking the object reference chain. (Max = 4)
Returns
bool true if successful, false if not

◆ CompareClasses() [2/2]

bool FContentComparisonHelper::CompareClasses ( const FString &  InBaseClassName,
int32  InRecursionDepth 
)
virtual

Compare the classes derived from the given base class.

Parameters
InBaseClassNameThe base class to perform the comparison on.
InRecursionDepthHow deep to recurse when walking the object reference chain. (Max = 4)
Returns
bool true if successful, false if not

◆ RecursiveObjectCollection()

void FContentComparisonHelper::RecursiveObjectCollection ( UObject InStartObject,
int32  InCurrDepth,
int32  InMaxDepth,
TMap< UObject *, bool > &  OutCollectedReferences 
)

Recursive function for collecting objects referenced by the given object.

Parameters
InStartObjectThe object to collect the references for
InCurrDepthThe current depth being processed
InMaxDepthThe maximum depth to traverse the reference chain
OutCollectedReferencesThe resulting referenced object list

Member Data Documentation

◆ ReferenceClassesOfInterest

TMap<FString,bool> FContentComparisonHelper::ReferenceClassesOfInterest
protected

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