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 ReplaceMeshComponentsMeshesOnActors
(
const TArray< class AActor * > & Actors,
class UStaticMesh * MeshToBeReplaced,
class UStaticMesh * NewMesh
)
Remarks
Find the references of the mesh MeshToBeReplaced on all the MeshComponents of all the Actors provided and replace it by NewMesh.
Parameters
| Name | Description |
|---|---|
| Actors | List of Actors to search from. |
| MeshToBeReplaced | Mesh we want to replace. |
| NewMesh | Mesh to replace MeshToBeReplaced by. |