ELoadFlags

Flags for loading objects, used by [LoadObject()](API\Runtime\CoreUObject\UObject\LoadObject) and related functions and passed as a uint32

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/ObjectMacros.h"

Syntax

enum ELoadFlags
{
    LOAD_None                           = 0x00000000,
    LOAD_Async                          = 0x00000001,
    LOAD_NoWarn                         = 0x00000002,
    LOAD_EditorOnly                     = 0x00000004,
    LOAD_ResolvingDeferredExports       = 0x00000008,
    LOAD_Verify                         = 0x00000010,
    LOAD_AllowDll                       = 0x00000020,
    LOAD_NoVerify                       = 0x00000080,
    LOAD_IsVerifying                    = 0x00000100,
    LOAD_DisableDependencyPreloading    = 0x00001000,
    LOAD_Quiet                          = 0x00002000,
    LOAD_FindIfFail                     = 0x00004000,
    LOAD_MemoryReader                   = 0x00008000,
    LOAD_NoRedirects                    = 0x00010000,
    LOAD_ForDiff                        = 0x00020000,
    LOAD_PackageForPIE                  = 0x00080000,
    LOAD_DeferDependencyLoads           = 0x00100000,
    LOAD_ForFileDiff                    = 0x00200000,
    LOAD_DisableCompileOnLoad           = 0x00400000,
}

Values

Name

Description

LOAD_None

No flags.

LOAD_Async

Loads the package using async loading path/ reader.

LOAD_NoWarn

Don't display warning if load fails.

LOAD_EditorOnly

Load for editor-only purposes and by editor-only code.

LOAD_ResolvingDeferredExports

Denotes that we should not defer export loading (as we're resolving them)

LOAD_Verify

Only verify existance; don't actually load.

LOAD_AllowDll

Allow plain DLLs.

LOAD_NoVerify

LOAD_Unused = 0x00000040.

LOAD_IsVerifying

Is verifying imports

LOAD_DisableDependencyPreloading

Bypass dependency preloading system.

LOAD_Quiet

No log warnings.

LOAD_FindIfFail

Tries FindObject if a linker cannot be obtained (e.g. package is currently being compiled)

LOAD_MemoryReader

Loads the file into memory and serializes from there.

LOAD_NoRedirects

Never follow redirects when loading objects; redirected loads will fail.

LOAD_ForDiff

Loading for diffing in the editor.

LOAD_PackageForPIE

This package is being loaded for PIE, it must be flagged as such immediately.

LOAD_DeferDependencyLoads

Do not load external (blueprint) dependencies (instead, track them for deferred loading)

LOAD_ForFileDiff

Load the package (not for diffing in the editor), instead verify at the two packages serialized output are the same, if they are not then debug break so that you can get the callstack and object information.

LOAD_DisableCompileOnLoad

Prevent this load call from running compile on load for the loaded blueprint (intentionally not recursive, dependencies will still compile on load)

Remarks

Flags for loading objects, used by LoadObject() and related functions and passed as a uint32

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