FPackageTrailerBuilder::CreateFromTrailer

Creates a builder from a pre-existing [FPackageTrailer](API\Runtime\CoreUObject\UObject\FPackageTrailer).

Choose your operating system:

Windows

macOS

Linux

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

Syntax

static FPackageTrailerBuilder CreateFromTrailer
(
    const class FPackageTrailer & Trailer,
    FArchive & Ar,
    const FName & PackageName
)

Remarks

Creates a builder from a pre-existing FPackageTrailer. Payloads stored locally in the source trailer will be loaded from disk via the provided archive so that the builder can write them to any future trailer that it creates.

Parameters

Parameter

Description

Trailer

The trailer to create the builder from

Ar

An archive that the trailer can use to load payloads from

PackageName

The name of the package that owns the trailer. Used for error messages.