EPackageFlags

Package flags, passed into [UPackage::SetPackageFlags](API\Runtime\CoreUObject\UObject\UPackage\SetPackageFlags) and related functions

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/ObjectMacros.h"

Syntax

enum EPackageFlags
{
    PKG_None                          = 0x00000000,
    PKG_NewlyCreated                  = 0x00000001,
    PKG_ClientOptional                = 0x00000002,
    PKG_ServerSideOnly                = 0x00000004,
    PKG_CompiledIn                    = 0x00000010,
    PKG_ForDiffing                    = 0x00000020,
    PKG_EditorOnly                    = 0x00000040,
    PKG_Developer                     = 0x00000080,
    PKG_UncookedOnly                  = 0x00000100,
    PKG_Cooked                        = 0x00000200,
    PKG_ContainsNoAsset               = 0x00000400,
    PKG_UnversionedProperties         = 0x00002000,
    PKG_ContainsMapData               = 0x00004000,
    PKG_Compiling                     = 0x00010000,
    PKG_ContainsMap                   = 0x00020000,
    PKG_RequiresLocalizationGather    = 0x00040000,
    PKG_PlayInEditor                  = 0x00100000,
    PKG_ContainsScript                = 0x00200000,
    PKG_DisallowExport                = 0x00400000,
    PKG_DynamicImports                = 0x10000000,
    PKG_RuntimeGenerated              = 0x20000000,
    PKG_ReloadingForCooker            = 0x40000000,
    PKG_FilterEditorOnly              = 0x80000000,
}

Values

Name

Description

PKG_None

No flags.

PKG_NewlyCreated

Newly created package, not saved yet. In editor only.

PKG_ClientOptional

Purely optional for clients.

PKG_ServerSideOnly

Only needed on the server side.

PKG_CompiledIn

This package is from "compiled in" classes.

PKG_ForDiffing

This package was loaded just for the purposes of diffing.

PKG_EditorOnly

This is editor-only package (for example: editor module script package)

PKG_Developer

Developer module.

PKG_UncookedOnly

Loaded only in uncooked builds (i.e. runtime in editor)

PKG_Cooked

Package is cooked.

PKG_ContainsNoAsset

Package doesn't contain any asset object (although asset tags can be present)

PKG_UnversionedProperties

Uses unversioned property serialization instead of versioned tagged property serialization.

PKG_ContainsMapData

Contains map data (UObjects only referenced by a single ULevel) but is stored in a different package

PKG_Compiling

PKG_Unused = 0x00008000,.

PKG_ContainsMap

Set if the package contains a ULevel/ UWorld object.

PKG_RequiresLocalizationGather

Set if the package contains any data to be gathered by localization

PKG_PlayInEditor

PKG_Unused = 0x00080000,.

PKG_ContainsScript

Package is allowed to contain UClass objects.

PKG_DisallowExport

Editor should not export asset in this package

PKG_DynamicImports

This package should resolve dynamic imports from its export at runtime.

PKG_RuntimeGenerated

This package contains elements that are runtime generated, and may not follow standard loading order rules.

PKG_ReloadingForCooker

This package is reloading in the cooker, try to avoid getting data we will never need. We won't save this package.

PKG_FilterEditorOnly

Package has editor-only data filtered out.

Remarks

Package flags, passed into UPackage::SetPackageFlags and related functions

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