示例#1
0
        private void DrawExportEditor(ExportSettings settings)
        {
            if (exportEditor.Draw(settings))
            {
                var buttonPressed = GUILayout.Button("Export", GUILayout.Height(30));

                GUILayout.FlexibleSpace();

                if (buttonPressed)
                {
                    Export.ExportMod(settings);
                }
            }
        }
示例#2
0
        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);
            }
        }
示例#3
0
        public static void ExportMod()
        {
            var singleton = new EditorScriptableSingleton <ExportSettings>();

            Export.ExportMod(singleton.instance);
        }