此标签用于设置当前元素与前一元素的间隔大小
Space(int) 接受一个整型作为间隔参数
Shader "BZGUITest/Order"
{
Properties
{
[Space(50)]
[MT][Order(40)]_T1("MainTex", 2D) = "White"{}
[MT][Order(30)]_T2("SecondTex", 2D) = "White"{}
}
SubShader
{
Tags { "RenderType"="Opaque" }
LOD 100
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
// make fog work
#include "UnityCG.cginc"
struct appdata
{
float4 vertex : POSITION;
float2 uv : TEXCOORD0;
};
struct v2f
{
float2 uv : TEXCOORD0;
float4 vertex : SV_POSITION;
};
v2f vert (appdata v)
{
v2f o;
o.vertex = UnityObjectToClipPos(v.vertex);
UNITY_TRANSFER_FOG(o,o.vertex);
return o;
}
fixed4 frag (v2f i) : SV_Target
{
return half4(1,0.2,0.2,1);
}
ENDCG
}
}
CustomEditor "BZTA.BZShaderGUI"
}