Change a material color at runtime (Blueprint)

Hi!

Just started unreal a couple days ago and I’m trying to change the color of a target when I hit them throught blueprint (the more they get hit, the more red they become) but for some reason, even if my print string shows that my color variable changes accordingly, the material doesn’t respond to the event. Any ideas?

1 Like

Two things I notice

  1. You only need to make the material instance once, on begin play, and then change the parameter on each hit. You’re making a fresh material every time here.

  2. The spelling of the parameter names in the set node are case sensitive.

2 Likes

It now works as intended, thank you!

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.