UObject::CookAdditionalFiles

Called during cook to allow objects to generate additional cooked files alongside their cooked package.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/Object.h

Include

#include "UObject/Object.h"

Syntax

void CookAdditionalFiles
(
    const TCHAR * PackageFilename,
    const ITargetPlatform * TargetPlatform,
    TFunctionRef< void *Filename, void *Data, int64Size)> WriteAdditionalFile
)

Remarks

Called during cook to allow objects to generate additional cooked files alongside their cooked package.

Implement CookAdditionalFilesOverride to define sub class behavior.

Parameters

Parameter

Description

PackageFilename

full path to the package that this object is being saved to on disk

TargetPlatform

target platform to cook additional files for

WriteAdditionalFile

function for writing the additional files

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss