//表示分类,不可以有中文。
[Header(***)]
//去掉贴图的tiling和offset参数。
[NoScaleOffset] _MainTex("Main Texture", 2D)= "white"{}
//枚举
[Enum(UnityEngine.Rendering.CullMode)] _CullMode ("Cull Mode", Float) = 0
//自定义枚举
[KeywordEnum(AAAAA,BBBBB,CCCCC)]_Test("Name",Float) = 0
注: 在multi_compile/shader_feature 后使用时, 格式为:"变量名"+"_"+"枚举名", 并且所有的字母要变成大写, 以上边为例: _TEST_AAA _TEST_BBB _TEST_CCC;
//Range(没发现有什么作用)
[FloatRange]_Test("Name", Range(0,2)) = 1.0
//不在Inspector上显示这个参数.
[HideInInspector]
//自动转成NormalMap.
[Normal]
_NormalMap("Normal Map", 2D) = "bump"{}
//强制颜色为HDR/GAMMA.
[HDR][GAMMA]
//indicates that a texture property will be coming from per-renderer data in the form of a MaterialPropertyBlock. Material inspector changes the texture slot UI for these properties.
//在代码里调用做区别性的修改.比如树的颜色等等.
[PerRendererData