/Engine/Source/Runtime/Engine/Public/EngineUtils.h
Recursive function for collecting objects referenced by the given object.
void RecursiveObjectCollection ( [UObject](API\Runtime\CoreUObject\UObject\UObject) * InStartObject, int32 InCurrDepth, int32 InMaxDepth, [TMap](API\Runtime\Core\Containers\TMap)< [UObject](API\Runtime\CoreUObject\UObject\UObject) *, bool > & OutCollectedReferences )