![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <LinkerInstancingContext.h>
Classes | |
| class | FSharedLinkerInstancingContextData |
Static Public Member Functions | |
| static COREUOBJECT_API FLinkerInstancingContext | DuplicateContext (const FLinkerInstancingContext &InLinkerInstancingContext) |
| static FString | GetInstancedPackageName (const FString &InOuterPackageName, const FString &InPackageName) |
| static FName | GetInstancedPackageName (FName InOuterPackageName, FName InPackageName) |
Friends | |
| class | FLinkerLoad |
| struct | FAsyncPackage2 |
| class | FLinkerInstancingContextTests |
Helper class to remap package imports during loading. This is usually when objects in a package are outer-ed to object in another package or vice versa. Instancing such a package without a instance remapping would resolve imports to the original package which is not desirable in an instancing context (i.e. loading a level instance) This is because an instanced package has a different name than the package file name on disk, this class is used in the linker to remaps reference to the package name as stored in import tables on disk to the corresponding instanced package or packages we are loading.
| FLinkerInstancingContext::FLinkerInstancingContext | ( | ) |
|
explicit |
|
explicit |
Add a mapping from a package name to a new package name. There should be no separators (. or :) in these strings.
| void FLinkerInstancingContext::AddPackageMappingFunc | ( | TFunction< FName(FName)> | InInstancedPackageMapFunc | ) |
Add a mapping function from a package name to a new package name. This function should be thread-safe, as it can be invoked from ALT.
| void FLinkerInstancingContext::AddPathMapping | ( | FSoftObjectPath | Original, |
| FSoftObjectPath | Instanced | ||
| ) |
Add a mapping from a top level asset path (/Path/To/Package.AssetName) to another.
|
static |
| void FLinkerInstancingContext::FixupSoftObjectPath | ( | FSoftObjectPath & | InOutSoftObjectPath | ) | const |
|
inlinestatic |
Return the instanced package name for a given instanced outer package and an object package name
|
inlinestatic |
| bool FLinkerInstancingContext::GetSoftObjectPathRemappingEnabled | ( | ) | const |
| bool FLinkerInstancingContext::IsInstanced | ( | ) | const |
Remap the package name from the import table to its instanced counterpart, otherwise return the name unmodified.
| FSoftObjectPath FLinkerInstancingContext::RemapPath | ( | const FSoftObjectPath & | Path | ) | const |
Remap the top level asset part of the path name to its instanced counterpart, otherwise return the name unmodified. i.e. remaps /Path/To/Package.AssetName:Inner to /NewPath/To/NewPackage.NewAssetName:Inner
| void FLinkerInstancingContext::SetSoftObjectPathRemappingEnabled | ( | bool | bInSoftObjectPathRemappingEnabled | ) |
|
inline |
|
friend |
|
friend |
|
friend |