Navigation
API > API/Editor > API/Editor/StaticMeshEditor > API/Editor/StaticMeshEditor/UStaticMeshEditorSubsystem
References
| Module | StaticMeshEditor |
| Header | /Engine/Source/Editor/StaticMeshEditor/Public/StaticMeshEditorSubsystem.h |
| Include | #include "StaticMeshEditorSubsystem.h" |
| Source | /Engine/Source/Editor/StaticMeshEditor/Private/StaticMeshEditorSubsystem.cpp |
UFUNCTION (BlueprintCallable, Category="Static Mesh Utilities")
void ReplaceMeshComponentsMeshes
(
const TArray< class UStaticMeshComponent * > & MeshComponents,
class UStaticMesh * MeshToBeReplaced,
class UStaticMesh * NewMesh
)
Remarks
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.
Parameters
| Name | Description |
|---|---|
| MeshComponents | List of MeshComponent to search from. |
| MeshToBeReplaced | Mesh we want to replace. |
| NewMesh | Mesh to replace MeshToBeReplaced by. |