Get any basic color I want without making a new material?

Hey, I’m making a simple game using only simple colors as the graphics for everything. Here is my script for a red color:

My question is, can I make a material that I can just put a color in without making a new material for every single color I want? Like when I apply the material to an object I want to be able to select a color as a parameter without duplicatiing and creating a new material. Sorry if this is a noob question, but I picked up the engine a few days ago after realizing that unity sucks.

Yes and easy. You can simple create material instance from material like this on picture. You have vector parameter with red color. In material instance you can set this color to any value, rgb,
Then you can set this value via blueprint.

you have full answer in this thread: BluePrint change Base Color of Material - Rendering - Unreal Engine Forums so, more description here is not need I think.