UnityEditor.ShaderInspectorPlatformsPopup.DoCustomPlatformBit C# (CSharp) Method

DoCustomPlatformBit() private method

private DoCustomPlatformBit ( Rect rect, int index ) : void
rect UnityEngine.Rect
index int
return void
        private void DoCustomPlatformBit(Rect rect, int index)
        {
            EditorGUI.BeginChangeCheck();
            int num = ((int) 1) << s_ShaderPlatformIndices[index];
            bool flag = (currentPlatformMask & num) != 0;
            flag = GUI.Toggle(rect, flag, EditorGUIUtility.TempContent(s_ShaderPlatformNames[index]), Styles.menuItem);
            if (EditorGUI.EndChangeCheck())
            {
                if (flag)
                {
                    currentPlatformMask |= num;
                }
                else
                {
                    currentPlatformMask &= ~num;
                }
                currentMode = 3;
            }
        }