Change texture in material
I have Actor (Blueprint Class) which have Material Instance on it and I would like to change paramater of that Material Instance from another Blueprint.
This is my code:
And this is Material:
As you can see I have a parameter called Texture which is variable which holds texture, and I would like to change that texture from another Blueprint.
asked Jun 15 '18 at 08:06 PM in Blueprint Scripting
You need a Dynamic Material Instance to do this. You can call CreateDynamicMaterialInstance and then set that on your mesh. From there, save a reference to it and you can change any parameters with SetTextureParameterValue, SetScalarParameterValue, etc.
answered Jun 15 '18 at 10:41 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here