(Help Needed) Store Static Mesh Component material

  • Exposure: public
  • UE Version: 4.26


May 6, 2021, 1:37 pm

Hey everyone!

I have a system that makes use of the Layer subsystem in the level editor. So far it's doing just about everything I want it to do.

Here is a basic overview of the system:

I select the Layer name, get all actors' Static Mesh Component and attempt to store the original material in an array. Once the materials are stored, I then switch the material to the highlight colour (so highlight all actors in the layer). I can then toggle it again and it replaces the highlight colour with the original material of the static mesh component.

The problem I am having is storing the original material. Below is my current method. I think I'm on the right path, but it would be great for some advice and tips as it gets the wrong material.


This video is provided by youtube using cookies.
See their privacy page.

Click the button above, it will automatically copy blueprint in your clipboard. Then in Unreal Engine blueprint editor, paste it with ctrl + v