Adjust a Material's Shininess Through Script in Realtime

Adjust a Material's Shininess Through Script in Realtime. Can it be done?

You can use something like this:

yourMaterial.SetFloat("_Shininess", shininessFloatValue);

Where yourMaterial is a reference to your material