Overlay Material not working on Static Meshes

I’ve created a simple overlay material to highlight selected meshes, but for some reason it is not applying in static meshes. If I test the same material with a Skeletal Mesh (even if I convert the static one I have just so it turns into a skeletal) the material works as intended, but when I apply it on a static mesh it doesn’t do anything.
I have tested with multiple simple static meshes, both default and from packs.
I also have tested just using the material I wanted to use as overlay as regular material for the mesh and it renders as expected. What could be the cause for it? I’m using the 5.3 engine

2 Likes

Hi, I also encountered this issue. It looks like Overlay Materials don’t work with Nanite. Try testing it on a static mesh with Nanite disabled

I have the same problem in 5.5. It shows up at first but when I build lightmaps it disappears.

1 Like


Hi, it seems to be a problem with version 5.3 and above (im using 5.5). I had the same issue here but solved it by just turning off “Enable Nanite Support” in static mesh settings tab. I use it for inverted hull, worked as I expected. :wink:

Static meshes have a checkbox called Disallow Nanite and when that’s enabled, the effects show up correctly. So what I’ve done is automatically disables Nanite when the overlay effect starts and then enables it again afterward. This is similar to how the Matrix demo turns nanite on and off for the cars when they get damaged.