changing materials in runtime
I made a two materials(instances) and write a blueprint script. But it doesn't change like i made. It changed like the default grey color material.
asked Feb 08 '19 at 04:20 AM in Blueprint Scripting
In order to change material at runtime, you have to create something called Dynamic Material Instance (DMI). Right click on your BP background, and search "Create Dynamic" it should pop up. Once you have done this, you set the material ith the node you have used, in the begin play of your actor, to that DMI.
And from this DMI, you have nodes called Set Scalar/Vector parameter values, wich will allow you to change the material parameters at runtime :)
Have a look at this if some things are unclear : https://blueprintue.com/blueprint/iltew027/
answered Feb 08 '19 at 08:49 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here