unity 3d create new material runtime code example Example: create material at runtime unity Material mat = new Material(Shader.Find("Specular"));