protected void GUIAction(SerializedProperty action) { var playAnimations = action.FindPropertyRelative("playAnimations"); var stopAnimations = action.FindPropertyRelative("stopAnimations"); var stopAllAnimations = action.FindPropertyRelative("stopAllAnimations"); EditorGUILayout.LabelField("Play Animations"); using (MadGUI.Indent()) { GUIAnimationRefList(playAnimations, true); } MadGUI.PropertyFieldToggleGroup2(stopAllAnimations, "Stop All Animations", () => { GUI.enabled = !GUI.enabled; EditorGUILayout.LabelField("Stop Animations"); using (MadGUI.Indent()) { GUIAnimationRefList(stopAnimations, false); } }); }