Navigation
Unreal Engine C++ API Reference > Runtime > CoreUObject > UObject
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/LinkerInstancingContext.h |
Include | #include "UObject/LinkerInstancingContext.h" |
Syntax
class FLinkerInstancingContext
Remarks
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.
Constructors
Type | Name | Description | |
---|---|---|---|
FLinkerInstancingContext
(
TSet< FName > InTags |
|||
FLinkerInstancingContext
(
bool bInSoftObjectPathRemappingEnabled |
Functions
Type | Name | Description | |
---|---|---|---|
void | AddPackageMapping
(
FName Original, |
Add a mapping from a package name to a new package name. | |
void | AddPathMapping
(
FSoftObjectPath Original, |
Add a mapping from a top level asset path (/Path/To/Package.AssetName) to another. | |
void | |||
void | AppendTags
(
const TSet< FName >& NewTags |
||
void | FixupSoftObjectPath
(
FSoftObjectPath& InOutSoftObjectPath |
||
FString | GetInstancedPackageName
(
const FString& InOuterPackageName, |
Return the instanced package name for a given instanced outer package and an object package name | |
bool | |||
bool | |||
bool | IsInstanced () |
||
FName | RemapPackage
(
const FName& PackageName |
Remap the package name from the import table to its instanced counterpart, otherwise return the name unmodified. | |
FSoftObjectPath | RemapPath
(
const FSoftObjectPath& Path |
Remap the top level asset part of the path name to its instanced counterpart, otherwise return the name unmodified. | |
void | SetSoftObjectPathRemappingEnabled
(
bool bInSoftObjectPathRemappingEnabled |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
void | SetRegenerateUniqueBulkDataGuids
(
bool bFlag |
No longer used, pass ELoadFlags::LOAD_RegenerateBulkDataGuids to LoadPackage instead | |
bool | No longer used, check ELoadFlags::LOAD_RegenerateBulkDataGuids in the LoadFlags instead |