首先得到物体上的MeshRenderer组件,然后通过组件得到材质,最后就可以更改颜色了.GetComponent().material.Color=new Color(r,g,b,a);使用上面的代码就 ...
確定! 回上一頁