UnityEditor.EditorGUILayout.BeginToggleGroup C# (CSharp) Метод

BeginToggleGroup() публичный статический Метод

Begin a vertical group with a toggle to enable or disable all the controls within at once.

public static BeginToggleGroup ( GUIContent label, bool toggle ) : bool
label UnityEngine.GUIContent Label to show above the toggled controls.
toggle bool Enabled state of the toggle group.
Результат bool
        public static bool BeginToggleGroup(GUIContent label, bool toggle)
        {
            toggle = ToggleLeft(label, toggle, EditorStyles.boldLabel, new GUILayoutOption[0]);
            EditorGUI.BeginDisabled(!toggle);
            GUILayout.BeginVertical(new GUILayoutOption[0]);
            return toggle;
        }

Same methods

EditorGUILayout::BeginToggleGroup ( string label, bool toggle ) : bool