EditorGUILayout.BeginToggleGroupstatic function BeginToggleGroup (label : string, toggle : bool) : boolstatic function BeginToggleGroup (label : GUIContent, toggle : bool) : boolParameters
Returnsbool - The enabled state selected by the user. DescriptionBegin a vertical group with a toggle to enable or disable all the controls within at once. See Also: EndToggleGroup. // Settings
settingsOn = EditorGUILayout.BeginToggleGroup("Settings", settingsOn); backgroundColor = EditorGUILayout.ColorField(backgroundColor); soundOn = EditorGUILayout.Toggle(soundOn, "Turn on sound"); EditorGUILayout.EndToggleGroup(); |
