Set Material

Hi

I want the material of a cube to change when the e key is pressed on the keyboard, but I couldn’t find how to do it.

E

3 Likes

Thanks for help,

Now, when I enter the trigger box and press the e key on the keyboard, I want the material to change, can you help with this?

You can put a collision box around the cube. When the player presses E, only change if the player is overlapping the box :slight_smile:

1 Like

Please don’t think I’m stupid, I just started blueprinting :sweat_smile:. When I add kayboard e to the trigger box and connect it to the print string node, the print string does not work. It works when I connect the Enable input node to the Event ActorBeginOverlap as you did, but this time it also works when I exit the trigger box. I just want it to work while inside.

thank you for being patient with me. :sweat_smile:

Now it’s much easier to make a blueprint

1 Like

Thanks for help

1 Like