private void DrawExportEditor(ExportSettings settings) { if (exportEditor.Draw(settings)) { var buttonPressed = GUILayout.Button("Export", GUILayout.Height(30)); GUILayout.FlexibleSpace(); if (buttonPressed) { Export.ExportMod(settings); } } }
private void OnGUI() { GUI.enabled = !EditorApplication.isCompiling && !Application.isPlaying; exportSettingsEditor.OnInspectorGUI(); GUILayout.FlexibleSpace(); var buttonPressed = GUILayout.Button("Export", GUILayout.Height(30)); if (buttonPressed) { Export.ExportMod(exportSettings.instance); } }
public static void ExportMod() { var singleton = new EditorScriptableSingleton <ExportSettings>(); Export.ExportMod(singleton.instance); }