Navigation
API > API/Plugins > API/Plugins/StormSyncCore > API/Plugins/StormSyncCore/FStormSyncCoreUtils
Description
Attempts to create an ava pak buffer using a memory archive from the provided list of Package Names.
A list of FStormSyncFileDependency is also returned with `OutSuccessfullyPackedFiles_ including info such as asset path, file size, timestamp and file hash.
It differs from CreatePakBufferWithDependencies by not looking for inner dependencies. If you need to recursively search for dependencies, use CreatePakBufferWithDependencies instead.
| Name | CreatePakBuffer |
| 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 CreatePakBuffer
(
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 |
| OutPakArchive | Destination archive |
| OutErrorText | Localized Text if the operation failed |
| InOnFileAdded | Delegate triggered with FStormSyncFileDependency for each added file |