private void DrawAnimSettings() { var propApply = this.serializedObject.FindProperty(PROP_APPLYSETTINGS); SPEditorGUILayout.PropertyField(propApply); if (propApply.boolValue) { //this.DrawPropertyField(PROP_SETTINGS); EditorGUI.indentLevel++; SPEditorGUILayout.FlatChildPropertyField(this.serializedObject.FindProperty(PROP_SETTINGS)); EditorGUI.indentLevel--; } }