IAssetTools::RenameReferencingSoftObjectPaths

Function that renames all [FSoftObjectPath](API\Runtime\CoreUObject\UObject\FSoftObjectPath) object with the old asset path to the new one.

Unreal Engine C++ API Reference > Developer > AssetTools > IAssetTools

References

   
Module AssetTools
Header /Engine/Source/Developer/AssetTools/Public/IAssetTools.h
Include #include "IAssetTools.h"
void RenameReferencingSoftObjectPaths
(
    const [TArray](API\Runtime\Core\Containers\TArray)< [UPackage](API\Runtime\CoreUObject\UObject\UPackage) * > PackagesToCheck,
    const [TMap](API\Runtime\Core\Containers\TMap)< [FSoftObjectPath](API\Runtime\CoreUObject\UObject\FSoftObjectPath), [FSoftObjectPath](API\Runtime\CoreUObject\UObject\FSoftObjectPath) > & AssetRedirectorMap
)

Remarks

Function that renames all FSoftObjectPath object with the old asset path to the new one.

Parameters

Name Description
PackagesToCheck Packages to check for referencing FSoftObjectPath.
AssetRedirectorMap Map from old asset path to new asset path

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library