![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "CoreMinimal.h"Go to the source code of this file.
Functions | |
| COREUOBJECT_API void | FindPackageReferencesInObject (const UObject *RootObject, const TArray< FName > &PackagesReferenced, TFunctionRef< void(FName, const FString &)> Callback) |
| COREUOBJECT_API void FindPackageReferencesInObject | ( | const UObject * | RootObject, |
| const TArray< FName > & | PackagesReferenced, | ||
| TFunctionRef< void(FName, const FString &)> | Callback | ||
| ) |
Given a root object, this function will call the callback every time it encounters a reference in the root object (including all inlined/instanced UObjects. The returned references will be in an easily understood debugging format so that they're easy to understand the context.
For example, Actions[2](GameFeatureAction_Activities)->ObjectActivitiesInfo[0].TargetReference
Where TargetReference was one of the listed PackagesReferenced. The point of this function is to assist in the reporting of references between objects you need to show the developer.