public override void OnInspectorGUI() { // Init if needed if (!_initialized || configuration != target) { Initialize(); _initialized = true; } // Draw header if (drawHeader) { WitEditorUI.LayoutHeaderButton(HeaderIcon, HeaderUrl); GUILayout.Space(WitStyles.HeaderPaddingBottom); EditorGUI.indentLevel++; } // Layout content LayoutContent(); // Undent if (drawHeader) { EditorGUI.indentLevel--; } }
// Layout public override void OnInspectorGUI() { // Get settings if (Settings != target) { Settings = target as TTSPreloadSettings; } // Draw header WitEditorUI.LayoutHeaderButton(HeaderIcon, HeaderUrl); GUILayout.Space(WitStyles.HeaderPaddingBottom); // Layout actions LayoutPreloadActions(); // Layout data LayoutPreloadData(); }