How to create changing colour blueprint?

Hi,
I have made this keyboard and I’m trying to get an RGB effect on it.
So when I hit play I want all they keys to randomly change colours.
Any help would be appreciated thanks!

It a lot better to do randomization on CPU as it’s a lot more controllable, so make vector parameter multiply color to it and then in blueprint set that parameter randomly. If you never did something like that you can read about it here:

Here’s what I managed to do following your advice.

284471-test.gif

@MaouKuro you might want to try it. I basically followed the documentation, always learn something new in the process. :slight_smile:

Created a new actor and added Cube static mesh. Created a material with white color vector and named it colour. Then created a material instance. Below is the code inside my cube actor.