Module |
|
Header |
/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorAssetLibrary.h |
Include |
#include "EditorAssetLibrary.h" |
Source |
/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorAssetLibrary.cpp |
Consolidates an asset by replacing all references/uses of the provided AssetsToConsolidate with references to AssetToConsolidateTo. This is useful when you want all references of assets to be replaced by a single asset. The function first attempts to directly replace all relevant references located within objects that are already loaded and in memory. Next, it deletes the AssetsToConsolidate, leaving behind object redirectors to AssetToConsolidateTo.
The AssetsToConsolidate are DELETED by this function.
Modified objects will be saved if the operation succeeds.
True if the operation succeeds.
Parameter |
Description |
---|---|
AssetToConsolidateTo |
Asset to which all references of the AssetsToConsolidate will instead refer to after this operation completes. |
AssetsToConsolidate |
All references to these assets will be modified to reference AssetToConsolidateTo instead. |