How do I swap materials on an actor using a key command?

I’m trying to create the ability to use a key command to switch materials on an actor.

For example, I have an actor that has 3 materials. When I hit the “[” key, I want the 2nd material to switch to one of the series of materials that I have created. I want the “[” key to cycle between the different materials, so that as I hit the key repeatedly, it changes the materials. Any ideas? Thanks for the help!

Its possible.
But first you must create an array of Materials inside your Actor to hold the materials that this Actor can cycle through. Later when the key is pressed, get the next/previous material from this array (using index and whch material is currently applied). After that get a reference to the static mesh of this Actor and call the node ‘Set Material’ and pass the next material from the array and the static mesh as inputs.

Make the array of materials editable, and later when you place the Actor in the level, you can add items into this array (materials from content browser)

Do you mean something like this? or that it can switch between materials that are already applied to the mesh?

https://imagizer.imageshack.us/v2/1145x400q50/745/xH3XOo.png

Second link to the picture: https://imageshack.com/i/kpxH3XOop

Thanks for the suggestions, everyone! I found a great way to do it. More of a “brute force” way, and I’m sure that there is a more concise way to do it. But it works really well for what I need: