LoadPackageLinker

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

Choose your operating system:

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 FPackagePath & PackagePath,
    uint32 LoadFlags,
    UPackageMap * Sandbox,
    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

PackagePath

Package resource to load, must not be empty

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)