create new material and apply unity code example
Example: new material unity
Material mat = public Material(Shader shader);
Material mat = public Material(Material materialToCopy);
Material mat = public Material(Shader shader);
Material mat = public Material(Material materialToCopy);