Change material parameters using c# script

I have a question about changing object materials in Unity.
There is an object with multiple materials.
Task: You need to use the script (C #) to change, say, the Emission (or any other material parameter) of Material_1 (on / off) by pressing button_1 (or any other event) of Material_2 by button_2, Mater_3 by button_3, etc. At the same time, that the material would change at a specific object, and not in general.
Thank you in advance!

1 Like