/Engine/Source/Runtime/Core/Public/Serialization/PackageWriter.h
Package data may only be produced afterBeginCook()has been called and beforeEndCook()is called
void BeginCook ( const [FCookInfo](API\Runtime\Core\Serialization\ICookedPackageWriter\FCookInfo) & Info )