// ------------------- public void DrawGUI(AnalogConfig target) { EditorGUILayout.BeginVertical(); if (!string.IsNullOrEmpty(this.titleContent.text)) { //EditorGUILayout.LabelField("Fodable: " + this.isFoldable + " Folded:" + this.isFoldedOut); if (this.isFoldable) { InspectorUtils.DrawSectionHeader(this.titleContent, ref this.isFoldedOut); } else { EditorGUILayout.LabelField(this.titleContent, CFEditorStyles.Inst.boldText, GUILayout.ExpandWidth(true), GUILayout.MinWidth(30)); this.isFoldedOut = true; } } else { this.isFoldedOut = true; } if (this.isFoldedOut) { CFGUI.BeginIndentedVertical(CFEditorStyles.Inst.transpSunkenBG); JoystickConfig joyConfig = target as JoystickConfig; if (joyConfig != null) { this.DrawJoystickConfigGUI(joyConfig); } this.DrawAnalogConfigGUI(target); CFGUI.EndIndentedVertical(); } EditorGUILayout.EndVertical(); EditorGUILayout.Space(); }