Download

blueprint select static mesh by material (noob needs help)

Heya guys, Using blueprint to make a blutility. i’m looking for a way to Select all static mesh in editor window based on only if the mesh has a specific material applied to the mesh.
the goal is to select them than replace them with another mesh, or actor.

To me it looks like you would need to know which index the material is on.

Function - FindMeshWithMaterial
Parameters:
Index (Int)
InMaterial (MaterialInterface)

GetAllActorOfClass(StaticMeshActor)
If actor is rendered then move to next step
Get Mesh of that StaticMeshActor, Get Material(Index), if = InMaterial -> Do your things

Sorry I couldn’t figure it out !