I have a texture material that changes between 2 textures. This change can be controller by a variable. I’ve made a material instance from this material as well as a blueprint that has an object in it, to which this MI texture is applied to. I was hoping to update the materials variable parameters through the blueprints event tick but I am having difficulties figuring out how to access this parameter.
Would anyone know what has to be done in blueprint to access parameters and change them?
It looks like “Character material” isn’t a dynamic material instance. As far as I know you can only set parameter values from those. So if you dragged off the return value pin from the “Create Dynamic Material Instance Node” you would then be able to see the set/get parameter values.
Also if you were wanting to change the contrast parameter you would want to use Set Scalar Parameter Value.
Thanks. I didn’t know I can just straight promote it on the right side of the box. I think I was meant to say material? I have a material that has 2 textures in it, and a variable that controls the constrast between them.
And once I have my parameter name the same as the parameter’s name is in the material, how would I then take and alter this parameter inside the blueprint? Is there a way to call it? Or do I have to promote the parameter to a variable and then call that?
Hello,
If I understand this right, you are looking for material parameter collection.
Take a look at the documentation Material Parameter Collections | Unreal Engine Documentation
Basically via this you can change the mask texture of the material, individually.
thanks, but it’s not like that. I want that when clicking on a widget button of a blueprint it will change that Texture_Mask to another one and not desaturate it
sorry my mistake, I meant Texture_Mask (The one that appears in the image I sent above). But thank you very much for the help, but i already managed to solve my problem!