Unity Shader Inspector下拉菜单

小技巧

  • 示例

示例

Unity Shader Inspector下拉菜单_第1张图片

[Enum(UnityEngine.Rendering.BlendMode)]
_BlendSrc("混合源乘子",int)=0

[Enum(UnityEngine.Rendering.BlendMode)]
_BlendDst("混合目标乘子",int)=0

[Enum(UnityEngine.Rendering.BlendOp)]
_BlendOp("混合运算符",int)=0

BlendOp [_BlendOp]
Blend [_BlendSrc] [_BlendDst]

你可能感兴趣的:(Unity,unity)