Material.SetColor

void SetColor(string name, Color32 colorGamma)

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!

   
string name Name of the shader parameter.
Color32 colorGamma The gamma space color for the shader to use.
void SetColor(string name, Color colorGamma)

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!

   
string name Name of the shader parameter.
Color colorGamma The gamma space color for the shader to use.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!