Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject > API/Runtime/CoreUObject/UObject/FPackageTrailerBuilder > API/Runtime/CoreUObject/UObject/FPackageTrailerBuilder/AddPayload
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/PackageTrailer.h |
| Include | #include "UObject/PackageTrailer.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/PackageTrailer.cpp |
void AddPayload
&40;
const FIoHash & Identifier,
FCompressedBuffer Payload,
UE::Virtualization::EPayloadFilterReason Filter
&41;
Remarks
Adds a payload to the builder to be written to the trailer. Duplicate payloads will be discarded and only a single instance stored in the trailer.
Parameters
| Name | Description |
|---|---|
| Identifier | The identifier of the payload |
| Payload | The payload data |
| Flags | The custom flags to be applied to the payload |
| Callback | This callback will be invoked once the FPackageTrailer has been built and appended to disk. |