UnityEditor.ShaderInspectorPlatformsPopup.Draw C# (CSharp) Method

Draw() private method

private Draw ( EditorWindow caller, float listElementWidth ) : void
caller EditorWindow
listElementWidth float
return void
        private void Draw(EditorWindow caller, float listElementWidth)
        {
            Rect rect = new Rect(0f, 0f, listElementWidth, 16f);
            for (int i = 0; i < s_PlatformModes.Length; i++)
            {
                this.DoOneMode(rect, i);
                rect.y += 16f;
            }
            Color color = GUI.color;
            if (currentMode != 3)
            {
                GUI.color *= new Color(1f, 1f, 1f, 0.7f);
            }
            rect.xMin += 16f;
            for (int j = 0; j < s_ShaderPlatformNames.Length; j++)
            {
                this.DoCustomPlatformBit(rect, j);
                rect.y += 16f;
            }
            GUI.color = color;
            rect.xMin -= 16f;
            this.DrawSeparator(ref rect);
            this.DoShaderVariants(caller, ref rect);
        }