Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FEditorBulkData
Description
A utility for validating that a package trailer builder was created correctly. If a problem is encountered we will assert to prevent a corrupted package from being saved. The main thing we check is that the payload was added to the correct list for the correct payload storage type based on the flags we have for the payload. Note that it is not expected that we will ever encounter these problems (so asserting is acceptable) and the checks could be considered a little over cautious. We should consider just removing this check in 5.2 onwards.
| Name | ValidatePackageTrailerBuilder |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Serialization/EditorBulkData.h |
| Include Path | #include "Serialization/EditorBulkData.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Serialization/EditorBulkData.cpp |
static void ValidatePackageTrailerBuilder
(
const FLinkerSave * LinkerSave,
const FIoHash & Id,
EFlags PayloadFlags
)
Parameters
| Name | Remarks |
|---|---|
| LinkerSave | The linker containing the package trailer builder |
| Id | The hash of the payload we want to verify |
| PayloadFlags | The flags for the payload. |