Dynamic Material Instances created in Construction Script

I have a custom actor that creates and assigns dynamic material instances to staticmeshcomponents (in the construction script) based on the actor’s properties. This is so I can tune material details per actor instance without have to manually create a bunch of Material Instance assets in the content browser.

It works great, it works in a packaged build, but if I Build All Levels, the materials all disappear - that is the static meshes they’re assigned to go invisible - and the pivot for the components moves to the world origin.

Adjusting a param on the actor to refresh the construction script fixes it, and if I package the “built” version they work fine when I launch the packaged game.

Anyone have any ideas why they completely disappear on building?

On further inspection, the build is also making non-staticmesh components (eg. lights) disappear. All components are visible in the outliner, but completely invisible in the level editor.

Investigating further.

UPDATE: It occurs during Build Geometry, and while static mesh components become invisible, light components are visible but are reset to world zero position/rotation.

Still not sure why :frowning:

Ok this issue is logged: