FAssetRegistryGenerator::AddAssetToFileOrderRecursive

Follows an assets dependency chain to build up a list of package names in the same order as the runtime would attempt to load them

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/Commandlets/AssetRegistryGenerator.h

Include

#include "Commandlets/AssetRegistryGenerator.h"

Source

/Engine/Source/Editor/UnrealEd/Private/Commandlets/AssetRegistryGenerator.cpp

Syntax

void AddAssetToFileOrderRecursive
(
    const FName & InPackageName,
    TArray< FName > & OutFileOrder,
    TSet< FName > & OutEncounteredNames,
    const TSet< FName > & InPackageNameSet,
    const TSet< FName > & InTopLevelAssets
)

Remarks

Follows an assets dependency chain to build up a list of package names in the same order as the runtime would attempt to load them

Parameters

Parameter

Description

InPackageName

The name of the package containing the asset to (potentially) add to the file order

OutFileOrder

Output array which collects the package names, maintaining order

OutEncounteredArray

Temporary collection of package names we've seen. Similar to OutFileOrder but updated BEFORE following dependencies so as to avoid circular references

InPackageNameSet

The source package name list. Used to distinguish between dependencies on other packages and internal objects

InTopLevelAssets

Names of packages containing top level assets such as maps

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