Change color of material on click going through a list

Hello guys,

I’m trying to understand a bit of the scripting in UE4. I want to be able to change the texture when I click on a object.

It’s already working. Bur tight now I’m a bit stuck. I want to create for example 4 colors, and then when I click on my object it cycle the colors on the object.

Do you have any ideas how to achieve this?

This should work:

Note that I have the color array set up as a variable of the blueprint. 4 Colors were added into it as default values.

Can you explain how did you made that color array with default values?

I Used it and worked just fine!!

To make a color array with default values u can just click on a slate color variable (exemple) and set it to array! Thanks!!