In simple way you can use FlipFlop. It will execute A or B outputs alternately.
But to have more control on this you can use some boolean variable like “ColorChanged”, and use it as condition to change color. For example, by default ColorChanged == false. When you press key, with Branch check ColorChanged.
On false → set color to whatever you want → set ColorChanged to true.
On True → set color to default one → set ColorChanged to false.
I have managed to make dynamic material that can change color in Game play, but for each change I have to press different key on the keyboard. Here is my blueprint setting for this to work:
But now I have a new problem, I want to change two different materials on one mesh and made this construction but doesn’t change anything in Game play…