BUG:Thetype or namespace name `UnityEditor' could not be found. Are you missing ausing directive or an assembly reference?
解决:
1.在引用的Using UnityEditor前面 加上 #if UNITY_EDITOR在后面加上 #endif
2.在代码中引用到UnityEditor中的方法前后也加上上面两句;
二、Shader errorin 'Transparent/Refractive': Program 'frag_surf', error X4506: ps_4_0_level_9_3input limit (8) exceeded, shader uses 9 inputs. (on d3d11_9x)
CGPROGRAM
#pragma surface surf Blinn