Hi, I’ve got a BP inside my level. Inside the blueprint there are many different planes to which I assign different Dynamic Material Instances.
I’ve got a function that changes the dynamic material’s images.
It works fine when I play in the level editor viewport, but when I package the game, the dynamic material doesn’t work (though, the material is assigned, because I see the sky texture that is the base material selected).
I’ve seen that there are two different Create Dynamic Material Instance nodes, but it doesn’t work with either.
Also I want to report a possible bug: I tried assigning a dynamic MI in the properties and then using getMaterial>castToDynamicMaterialInstance, but it breaks the level’s saving.
# output log
Can't save ../../Main.umap: Graph is linked to external private object MaterialInstanceEditorOnlyData /Game/selector_BP.selector_BP_C:fg_plane_GEN_VARIABLE.MaterialInstanceDynamic_1.MaterialInstanceDynamic_1EditorOnlyData