Graphics, Programming, Unity, Tutorial, Technology.
It passes a list to OnGUI containing a MaterialProperty instance for each property of the shader, and provides a BaseShaderGUI.FindProperty method to easily grab the one corresponding to “_SurfaceType.” MaterialProperty stores property values as floats, but its easy to cast them to SurfaceType.