HUD and Material Instance
I'm having a problem trying to use HUD and material instance. Here's the explanation:
I have a mesh at my level which has a material instance of a material. This material has the emissive color as a parameter so I can change it at the instance. My HUD creates a widget that contains a few buttons. What I want to do is click on one of these buttons and change the emissive color parameter to zero. Here is the code for the creation of the widget inside the HUD:
In another part of the code I used this to change the material of a mesh:
How can I access the material parameter from inside the widget code?
Thanks for the help!
asked Jun 12 '17 at 06:10 AM in Blueprint Scripting
Take a look at my approach;
Sample material graph
I've created the material instance inside the construction script for this example.
Inside widget event graph
I've tried this approach and worked. One thing to note is that it affects all the blueprints of the same class in your level.
Can you use "Set Vector Parameter" node. For this https://answers.unrealengine.com/questions/657471/get-color-of-texture-sample.html
Follow this question
Once you sign in you will be able to subscribe for any updates here