参考文档:https://www.cnblogs.com/makebetter/p/6747012.html
改变color的alpha即可。
关键:Transparent/Diffuse
Material material = new Material(Shader.Find(“Transparent/Diffuse”));
material.color = Color.green;
GetComponent().material = material;
参考文档:https://www.cnblogs.com/makebetter/p/6747012.html
改变color的alpha即可。
关键:Transparent/Diffuse
Material material = new Material(Shader.Find(“Transparent/Diffuse”));
material.color = Color.green;
GetComponent().material = material;