Material Random color with key input

Hi,

I did follow the 2 video tutorials how to get a random color with a trigger box (Intro to Materials: Dynamic Material Instances cont. | 10 | v4.0 Tutorial Series | Unreal Engine - YouTube). This is working well.

However, when I change the triggerbox into a Key input (for example ‘B’), it does not work. Why not?

See my blueprint beneath, where I connected the Key input and the Triggerbox to the color parameter. Only the triggerbox works… Thanks in advance.

Hey HoloX,

You need to make sure input is able to be passed to this blueprint, so if you are using a custom player controller you will want to check in that blueprint’s defaults to make sure Block Input is not enabled on it. You may also need to add an Event Begin Play to your above blueprint that connects to an Enable Input node.

Hope that helps!

-Steve