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?