Can't save MaterialInstanceDynamic created via C++
I've reproduced the bug in a standalone project and attached it here. To get the message, simply create an instance of MyActor (a C++ class) and then save.
asked Jul 09 '19 at 10:38 PM in Using UE4
Okay, after trying a couple of things i think this is the best way to go. As i said earlier, dynamic material instances are made to be created and edited during runtime so i suggest creating a constant material instance based on the material you wanna edit and using that in your constructor instead of the dynamic one, which will save just fine.
And if you want to edit it at runtime, just create a dynamic one based off of it and change its parametes, here's the code i set up.
Here's my in-editor setup with a material instance constant set to a red value, level and actor both save fine because the instance isn't dynamic.
At runtime, a dynamic one is created and set to the mesh.
answered Jul 11 '19 at 09:08 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here