Unity3D 材质球设置参数无效果的解决方法 要设置shader里有下划线的属性名,而不是后面字符串的属性名。 Color tmp = new Color(1,1,1,alpha); mat.SetColor("_Color", tmp);