Navigation
API > API/Plugins > API/Plugins/StormSyncCore > API/Plugins/StormSyncCore/FStormSyncCoreUtils
Description
Gathers a list of PackageNames dependencies referenced by the supplied packages.
Internally uses the AssetRegistry to recursively determine dependencies and returns a flatten list of all referenced assets (On disk references ONLY).
| Name | GetDependenciesForPackages |
| Type | function |
| Header File | /Engine/Plugins/VirtualProduction/StormSync/Source/StormSyncCore/Public/StormSyncCoreUtils.h |
| Include Path | #include "StormSyncCoreUtils.h" |
| Source | /Engine/Plugins/VirtualProduction/StormSync/Source/StormSyncCore/Private/StormSyncCoreUtils.cpp |
static bool GetDependenciesForPackages
(
const TArray < FName > & InPackageNames,
TArray < FName > & OutDependencies,
FText & OutErrorText,
const bool bInShouldValidatePackages
)
Returns true if we were able to generate a list of dependencies and false if the operation failed. Note that in case of failure, ErrorText is filled with further information.
Parameters
| Name | Remarks |
|---|---|
| InPackageNames | List of packages to look for dependencies |
| OutDependencies | Sorted (alphabetically) list of all package dependencies |
| OutErrorText | Localized Text if the operation failed |
| bInShouldValidatePackages | Whether to disable strict verification on validity of package (eg. must exist locally) |