Help With Character blueprint

Hi guys, I’m struggling with the materials and character blueprints in UE4.

I’ve created a cloak material and apply it to my character blueprint to change my character material

and it works perfectly if I press a key…
Then I created a lava material and apply it to my character blueprint and it doesn’t show.
It change the material to the normal color but I want it to change from the cloak effect to lava pressing one key…

Please help me
Thank you

Judging by your screenshot you don’t have the lava material code hooked up to anything. Your flip flop is just going between cloak and normal material while your lava material change will never be called because nothing calls it. You have to hook it up to the key press event. My suggesting would be to hold a float to keep track of what state you’re supposed to change to. 0 for cloak, 1 for lava, etc. Then you would simply check the variable when the key is pressed and go from there.

Thank you so much for the reply but I’ve figured it out. The problem was never in my Character blueprint editor… it was in the material editor and it was also a very stupid mistake I did. I forgot to drag the material on my character and then I went and hook it up to a key press event.

But thank you very much.