Navigation
API > API/Runtime > API/Runtime/CoreUObject
Package flags, passed into UPackage::SetPackageFlags and related functions
This MUST be kept in sync with EPackageFlags defined in Engine\Source\Programs\Shared\EpicGames.Core\UnrealEngineTypes.cs
| Name | EPackageFlags |
| Type | enum |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h |
| Include Path | #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_NotExternallyReferenceable = 0x00000800,
PKG_AccessSpecifierEpicInternal = 0x00001000,
PKG_UnversionedProperties = 0x00002000,
PKG_ContainsMapData = 0x00004000,
PKG_IsSaving = 0x00008000,
PKG_Compiling = 0x00010000,
PKG_ContainsMap = 0x00020000,
PKG_RequiresLocalizationGather = 0x00040000,
PKG_LoadUncooked = 0x00080000,
PKG_PlayInEditor = 0x00100000,
PKG_ContainsScript = 0x00200000,
PKG_DisallowExport = 0x00400000,
PKG_CookGenerated = 0x08000000,
PKG_DynamicImports = 0x10000000,
PKG_RuntimeGenerated = 0x20000000,
PKG_ReloadingForCooker = 0x40000000,
PKG_FilterEditorOnly = 0x80000000,
}
Values
| Name | Remarks |
|---|---|
| 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_NotExternallyReferenceable | Objects in this package cannot be referenced in a different plugin or mount point (i.e /Game -> /Engine) |
| PKG_AccessSpecifierEpicInternal | Objects in this package can only be referenced in a different plugin or mount point by Epic. |
| 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_IsSaving | Temporarily set on a package while it is being saved. |
| PKG_Compiling | Package is currently being compiled |
| 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_LoadUncooked | This package must be loaded uncooked from IoStore/ZenStore (set only when cooking, to communicate to zenstore via the PackageStoreOptimizer) |
| PKG_PlayInEditor | Set if the package was created for the purpose of PIE. |
| PKG_ContainsScript | Package is allowed to contain UClass objects. |
| PKG_DisallowExport | Editor should not export asset in this package |
| PKG_CookGenerated | This package was generated by the cooker and does not exist in the WorkspaceDomain. |
| 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. |