This might give you some ideas on solving your problem: 3 Ways To Change Material Parameter Values In Blueprints - UE5 Tutorial