Navigation
API > API/Plugins > API/Plugins/EditorScriptingUtilities > API/Plugins/EditorScriptingUtilities/UEditorLevelLibrary
Description
Find the references of the mesh MeshToBeReplaced on all the MeshComponents provided and replace it by NewMesh. The editor should not be in play in editor mode.
| Name | ReplaceMeshComponentsMeshes |
| Type | function |
| Header File | /Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorLevelLibrary.h |
| Include Path | #include "EditorLevelLibrary.h" |
| Source | /Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorLevelLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Dataprep",
Meta=(DeprecatedFunction, DeprecationMessage="The Editor Scripting Utilities Plugin is deprecated - Use the function in Static Mesh Editor Subsystem"))
static void ReplaceMeshComponentsMeshes
(
const TArray < class UStaticMeshComponent * > & MeshComponents,
class UStaticMesh * MeshToBeReplaced,
class UStaticMesh * NewMesh
)
Parameters
| Name | Remarks |
|---|---|
| MeshComponents | List of MeshComponent to search from. |
| MeshToBeReplaced | Mesh we want to replace. |
| NewMesh | Mesh to replace MeshToBeReplaced by. |