Unity Tutorial: Working with materials
Materials will be used throughout our projects to control the appearance of visual elements in our level. In this video we’ll have a look at how to work with materials, in particular, how to work with them via code and the performance considerations involved.
Modifying materials via scripts: https://docs.unity3d.com/Manual/MaterialsAccessingViaScript.html
Find the code here: https://github.com/GameDevEducation/DevEssential_Materials