Navigation
API > API/Plugins > API/Plugins/MetaHumanCharacterEditor > API/Plugins/MetaHumanCharacterEditor/FMetaHumanCharacterEditorBuild
Description
Duplicates the dependency objects to input root path and resolves any references as needed. If a dependency object already exists in the root folder then it is not duplicated.
| Name | DuplicateDepedenciesToNewRoot |
| Type | function |
| Header File | /Engine/Plugins/MetaHuman/MetaHumanCharacter/Source/MetaHumanCharacterEditor/Public/Subsystem/MetaHumanCharacterBuild.h |
| Include Path | #include "Subsystem/MetaHumanCharacterBuild.h" |
| Source | /Engine/Plugins/MetaHuman/MetaHumanCharacter/Source/MetaHumanCharacterEditor/Private/Subsystem/MetaHumanCharacterBuild.cpp |
static void DuplicateDepedenciesToNewRoot
(
const TSet < UObject * > & InDependencies,
const FString & InDependencyRootPath,
TSet < UObject * > & InOutObjectsToReplaceWithin,
TMap < UObject *, UObject * > & OutDuplicatedDependencies,
TFunction < bool *)> InIsAssetSupported
)
Parameters
| Name | Remarks |
|---|---|
| InDependencies | set of all dependency objects to be duplicated |
| InDependencyRootPath | new root folder for the dependencies to be copied |
| InOutObjectsToReplaceWithin | set with all objects that reference the dependencies and need to resolve their references |
| OutDuplicatedDependencies | map for every dependency to its new referenced object |
| InIsAssetSupported | Callable to check if an asset should be duplicated |