LoadPackageLinker

Loads a linker for a package and returns it without loading any objects.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/Linker.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/Linker.cpp

Syntax

FLinkerLoad * LoadPackageLinker
(
    UPackage * InOuter,
    const TCHAR * InLongPackageName,
    uint32 LoadFlags,
    UPackageMap * Sandbox,
    FGuid * CompatibleGuid,
    FArchive * InReaderOverride,
    TFunctionRef< void *LoadedLinker)> LinkerLoadedCallback
)

Remarks

Loads a linker for a package and returns it without loading any objects.

Returns

Pointer to the loaded linker or null if the file didn't exist

Parameters

Parameter

Description

InOuter

Package if known, can be null

InLongPackageName

Name of the package to load

LoadFlags

Flags to pass to the new linker

Sandbox

Additional sandbox for loading

CompatibleGuid

Net GUID

InReaderOverride

Optional archive to use for reading package data

LinkerLoadedCallback

Callback when the linker is loaded (or not found)

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