Change texture in material

Hello,

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.

1 Like

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.

1 Like