Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UObject > API/Runtime/CoreUObject/UObject/GetPackageLinker
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 |
FLinkerLoad * GetPackageLinker
(
UPackage * InOuter,
const FPackagePath & PackagePath,
uint32 LoadFlags,
UPackageMap * Sandbox,
FArchive * InReaderOverride,
FUObjectSerializeContext ** InOutLoadContext,
FLinkerLoad * ImportLinker,
const FLinkerInstancingContext * InstancingContext
)
Remarks
Gets a linker for a package and returns it without loading any objects. Pointer to the loaded linker or null if the file didn't exist
Parameters
| Name | 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 |
| 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 |
| ImportLinker | Optional import linker that triggered the linker creation. it will pass in its instancing context if a linker is created, take precedence over the optional InstancingContext |
| InstancingContext | Optional instancing context to pass in if a linker is created |