Content Cooking

Generating platform-specific content for assets used in the game.


Unreal Engine stores content assets in particular formats which it uses internally, such as PNG for texture data or WAV for audio. However, this content needs to be converted to different formats for the various platforms, either because the platform uses a proprietary format, does not support the format Unreal uses to store the asset, or a more memory- or performance-effective format exists. The process of converting content from the internal format to the platform-specific format is referred to as cooking.

Cooking Content from the Command Line

To cook data for your game, you need to use the Cook commandlet.

The basic cook is performed via the following:

UE4Editor.exe <GameName or uproject> -run=cook -targetplatform=<Plat1>+<Plat2> [-cookonthefly] [-iterate] [-map=<Map1>+<Map2>]


UE4Editor-Cmd.exe <GameName> -run=cook -targetplatform=<Plat1>+<Plat2> [-cookonthefly] [-iterate] [-map=<Map1>+<Map2>] 

The commandlet must be specified via -run=cook and a platform to cook must also be specified. This will generate cooked data for the platform specified and saved it to the location below:






Specifies the platform(s) to be cooked. The list of available platforms are WindowsNoEditor, WindowsServer, LinuxServer, PS4, XboxOne, IOS, and Android.


Specifies the cooker only cook items that are out of date. Without this option, the sandbox directory is deleted and everything is recooked.


Specifies the map(s) to build.


Specifies that the cooker be started in server mode. This will launch a server which waits for a game to connect and then serves the cooked data as needed. When this option is used, the game requires -filehostip=<Server IP> specified on its command line so it can connect with the server.

-MapIniSection=<ini file section>

Specifies a section from the ini files which contains map names. The cooker will cook all maps specified in the section specified.


Saves all of the cooked packages without versions. These are then assumed to be the current version on load.


Cooks everything.


Tells the cooker to compress the cooked packages.

Select Skin

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback