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 |
void ReplaceMeshComponentsMeshes
&40;
const TArray< class UStaticMeshComponent &42; > & MeshComponents,
class UStaticMesh &42; MeshToBeReplaced,
class UStaticMesh &42; NewMesh
&41;
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. |