GetPackageLinker

Gets 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 * GetPackageLinker
(
    UPackage * InOuter,
    const TCHAR * InLongPackageName,
    uint32 LoadFlags,
    UPackageMap * Sandbox,
    FGuid * CompatibleGuid,
    FArchive * InReaderOverride,
    FUObjectSerializeContext ** InOutLoadContext
)

Remarks

Gets a linker for a package and returns it without loading any objects. This call must be preceeded by BeginLoad and followed by EndLoad calls

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

InOutLoadContext

Optional load context. If the package linker is already associated with a context that's currently loading objects that context will be returned in this param

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