UnityEditor.ShaderInspectorPlatformsPopup.DoOneMode C# (CSharp) Method

DoOneMode() private method

private DoOneMode ( Rect rect, int index ) : void
rect UnityEngine.Rect
index int
return void
        private void DoOneMode(Rect rect, int index)
        {
            EditorGUI.BeginChangeCheck();
            GUI.Toggle(rect, currentMode == index, EditorGUIUtility.TempContent(s_PlatformModes[index]), Styles.menuItem);
            if (EditorGUI.EndChangeCheck())
            {
                currentMode = index;
            }
        }