FLinkerInstancingContext

Helper class to remap package imports during loading.

Windows
MacOS
Linux

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

Name Description

Public function

FLinkerInstancingContext()

Public function

FLinkerInstancingContext

(
    TMap< FName, FName > InInstanceMapp...
)

Functions

Name Description

Public function

void

 

AddMapping

(
    FName Original,
    FName Instanced
)

Public function

void

 

AppendMapping

(
    const TMap< FName, FName >& NewMap...
)

Public function Const

bool

 

IsInstanced()

Public function Const

FName

 

Remap

(
    const FName& ObjectName
)

Remap the object name from the import table to its instanced counterpart, otherwise return the name unmodified.

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