![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "UObject/Linker.h"#include "Containers/StringView.h"#include "Misc/PackageName.h"#include "Misc/CommandLine.h"#include "UObject/Package.h"#include "UObject/SavePackage.h"#include "Templates/Casts.h"#include "UObject/UnrealType.h"#include "UObject/LinkerLoad.h"#include "Misc/SecureHash.h"#include "Internationalization/GatherableTextData.h"#include "Logging/TokenizedMessage.h"#include "Logging/MessageLog.h"#include "Misc/UObjectToken.h"#include "ProfilingDebugging/CookStats.h"#include "UObject/CoreRedirects.h"#include "UObject/LinkerManager.h"#include "UObject/UObjectThreadContext.h"#include "UObject/DebugSerializationFlags.h"#include "UObject/ObjectResource.h"#include "UObject/PackageResourceManager.h"#include "Algo/Transform.h"Namespaces | |
| namespace | Linker |
Macros | |
| #define | LOCTEXT_NAMESPACE "Linker" |
| #define LOCTEXT_NAMESPACE "Linker" |
| void ConditionalFlushAsyncLoadingForLinkers | ( | TConstArrayView< FLinkerLoad * > | InLinkers | ) |
Conditionally flush async loading for a specific package if there's any pending async requests
| InPackage | The package to flush for |
| DEFINE_LOG_CATEGORY | ( | LogLinker | ) |
| void DeleteLoader | ( | FLinkerLoad * | Loader | ) |
Queues linker for deletion
| void DeleteLoaders | ( | ) |
Deletes all linkers that have finished loading
| FLinkerLoad * GetPackageLinker | ( | UPackage * | InOuter, |
| const FPackagePath & | PackagePath, | ||
| uint32 | LoadFlags, | ||
| UPackageMap * | Sandbox, | ||
| FArchive * | InReaderOverride = nullptr, |
||
| FUObjectSerializeContext ** | InOutLoadContext = nullptr, |
||
| FLinkerLoad * | ImportLinker = nullptr, |
||
| const FLinkerInstancingContext * | InstancingContext = nullptr |
||
| ) |
Gets a linker for a package and returns it without loading any objects.
| 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 |
| uint32 GetTypeHash | ( | const FDependencyRef & | Ref | ) |
Type hash implementation.
| Ref | Reference to hash |
| FLinkerLoad * LoadPackageLinker | ( | UPackage * | InOuter, |
| const FPackagePath & | PackagePath, | ||
| uint32 | LoadFlags, | ||
| UPackageMap * | Sandbox, | ||
| FArchive * | InReaderOverride | ||
| ) |
| FLinkerLoad * LoadPackageLinker | ( | UPackage * | InOuter, |
| const FPackagePath & | PackagePath, | ||
| uint32 | LoadFlags, | ||
| UPackageMap * | Sandbox, | ||
| FArchive * | InReaderOverride, | ||
| TFunctionRef< void(FLinkerLoad *LoadedLinker)> | LinkerLoadedCallback | ||
| ) |
Loads a linker for a package and returns it without loading any objects.
| 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) |
| FArchive & operator<< | ( | FArchive & | Ar, |
| FCompressedChunk & | Chunk | ||
| ) |
I/O function
| void operator<< | ( | FStructuredArchive::FSlot | Slot, |
| FCompressedChunk & | Chunk | ||
| ) |
Reset the linker exports associated with the package
| void ResetLoaders | ( | TConstArrayView< UObject * > | InOuters | ) |
Remove references to the linker for the given package and delete the linker. Can be called after the package has finished loading. Flushes async loading.
| void ResetLoadersForSave | ( | TConstArrayView< FPackageSaveInfo > | InPackages | ) |
Reset the loaders for the given packages if they are using the given filenames, so we can write to the files
| InPackage | The package we are saving along with their filename |