Navigation
API > API/Plugins > API/Plugins/StormSyncCore > API/Plugins/StormSyncCore/FStormSyncCoreUtils
Description
Recursively get dependencies for provided list of Package Names and attempts to create an ava pak buffer using a memory archive.
A list of FStormSyncFileDependency is also returned with `OutSuccessfullyPackedFiles_ including info such as asset path, file size, timestamp and file hash.
| Name | CreatePakBufferWithDependencies |
| 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 CreatePakBufferWithDependencies
(
const TArray < FName > & InPackageNames,
FArchive & OutPakArchive,
FText & OutErrorText,
const FOnFileAdded & InOnFileAdded
)
Returns true if we were able to generate the pak buffer false if the operation failed. Note that in case of failure, ErrorText is filled with further information.
Parameters
| Name | Remarks |
|---|---|
| InPackageNames | List of package name to include in the pak |
| OutPakBuffer | Raw buffer of the created in memory archive |
| OutErrorText | Localized Text if the operation failed |
| InOnFileAdded | Delegate triggered with FStormSyncFileDependency for each added file |