unity load material from assets code example
Example 1: load material unity c#
night = Resources.Load("Material/Night_Sky.mat", typeof(Material)) as Material;
Example 2: load material unity c#
Resources.Load("Material/Night_Sky.mat", typeof(Material)) as Material;