Shader values?

Hi!

I have queried a material in a script, and now I’d like to adjust it’s shininess through scripting. How can I do this?

e.g: myMaterial.shader.shininess=0;

Couldn’t find it on the forum and in the docs…
:sweat_smile:

thanks!

This should do it:

myMaterial.SetFloat(“_Shininess”, 0);

/P

great! thanks! I’ll look at other properties like Main color too!

If you switch the inspector to debug mode, you can see the names of all properties of a material