How to toggle color parameter in blueprint for dynamic material
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:
How, what I want to do is to change parameter values of the color whit pressing only one key on the keybord. How can I do that? Can anybody help?
asked Oct 31 '17 at 10:52 AM in Blueprint Scripting
This will work if I want to change two values, in my case I have three. I made it work with this event graph:
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...
Where is my mistake?
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.
answered Oct 31 '17 at 11:06 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here