How to make customizable material by the player

The idea is that i want the player to choose 2 colors which are going to be used in certain materials for props in the game.

Is that possible ?

Can you explain a but better?! I dont get what you want…

imagine the main menu where you have to choose 2 colors , and then those colors are used in certain props around the game (eg. - “banners” have the same 2 colors )

Maybe you could do something like this, @mafiozooo:


public Color selectedColor;
private Material myMaterial;
private MeshRenderer myRenderer;

void Awake(){
    myRenderer = GetComponent<MeshRenderer>();
    myMaterial = myRenderer.material;
}

void Start(){
    myMaterial.color = selectedColor;
}