Change Material by pressing E Key

Hello, I´m new to UE4 so I got a question.

Im currently trying to change a material by pressing E.

This is the blueprint ive made, not sure if I did everything right, pretty simple.

Could someone help me?

Your element index is different in the second SetMaterial node, is that on purpose? Otherwise… have you tried deactivating the EnableInput nodes? Maybe the problem lies there.

Just to make things clear, you try to change between the 2 materials after the multicast? If so, the material index should be the same (0 for both).

I just solved it by creating it in the Level blueprint instead, works like a charm now.

Seems the problem was element index being different

What note is the "Static Mesh Component between Get Object and Set Material nodes?