Is it possible to copy one object's materials to another object in editor?

I have a lot of meshes using the same materials, I import the first mesh and assign all the materials to it in the mesh editor
but I have to repeat this for all of the meshes, that’s a hell lot of work
is there a way to get all of the materials of a mesh and assign them to other meshes?
if the engine doesn’t have this function, is it possible to write a plugin to do this? and how?
(for static meshes and skeletal meshes)

No one has an answer to this? After 3 years I’m still wondering :smiley:

3 more . Still no idea.

I wrote a bluprint. it turned out to be very simple.

Care to include it within response?

This works for 5.4 (I bet it works for previous versions too.)

  1. Open the source mesh.
  2. Navigate to the “Material Slot” sub panel and expand the panel to show slots
  3. Hover cursor over the title “X Material Slots” (where X shows the number of slots)
  4. Right Click and select ‘Copy’
  5. Open the target mesh
  6. Repeat steps 2 and 3 but for the target mesh
  7. Right Click and Select ‘Paste’

If the slots are identical they should all transfer to the target mesh.