Material.SetColor

void SetColor(string name, Color32 value)

   
string name Name of the shader parameter.
Color32 value New value for the parameter.

Sets a shader parameter with the given name to the provided value. If no parameter is found, nothing happens, and the value is not set!

void SetColor(string name, Color value)

   
string name Name of the shader parameter.
Color value New value for the parameter.

Sets a shader parameter with the given name to the provided value. If no parameter is found, nothing happens, and the value is not set!