The Script i have connected to the players i would like to change color of is this
public Material skinMaterial;
void Awake()
{
gameObject.GetComponent<MeshRenderer>().material = skinMaterial;
}
alt text
this is the code i have for the button to change material of the player which is in all scenes
and for the i cant figure out how to make the skin material change on the inspector based on which button i press. i have the script on the buttons and on the main menu containing the buttons.