属性放在Properties块里面
Properties{ //名字("显示的名字",类型)=默认值 _Color("Color",Color) = (r,g,b,a) _Vector("Vector",Vector) = (1,2,3,4) _Int("Int",Int) = 100 _Float("Float",Float) = 3.6 _Range("Range",Range(1,10)) = 6 _2D("Texture",2D) = "white"{} _Cube("Cube",Cube) = "white"{} _3D("Texture3",3D) = "white"{} }
纹理2、3D的默认值"white"{}指的是不指定图片时,默认整个纹理为白色