I cannot figure this out
I have a function
public void ChangeCubeColor(Color c)
{
//Color c = Color.red;
cube.GetComponent ().material.color = c;
//uiText.text = c;
}
Except the function won’t show up in the on click event handler for a button… not sure why. If I change it from Color c to string c, it does show up, but then I can’t use the color.
Can colors not be passed from the On Click() event handler in a button?