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
asked Apr 19 '16 at 05:56 PM in Blueprint Scripting
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.
answered Apr 19 '16 at 06:27 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here