Get default materials from static mesh?

Is there a way to get the default materials from a static mesh reference? It doesn’t seem like there is. If a way does not already exist, I suggest adding one. It looks like UStaticMesh has material properties accessible to C++. They should be made accessible from Blueprint.

I ask because I’ve created an instanced static mesh manager that finds and adds new mesh instances as necessary. When determining whether to add a new instanced static mesh component or use an existing component, it checks if a component already exists with the specified static mesh and materials. The problem is that the ISMC’s get materials node (previously called get override materials) doesn’t include default materials where materials were not overridden. So, in that case, I would need to check if the specified material was equal to the default material. But, there isn’t a node for that.

Hi,
It would also be useful to me.

In case anyone ends up here looking for an answer, here’s how you do it:

I get a component from a trace, and if that’s a skeletal mesh it goes the upper path and if it’s a static mesh it goes the lower path, what the code as is does is reset the material at index 0 to the mesh’s default for that index.