main.js 947 B

123456789101112131415161718192021
  1. "use strict";
  2. //FYI: https://github.com/Tencent/puerts/blob/master/doc/unity/manual.md
  3. Object.defineProperty(exports, "__esModule", { value: true });
  4. exports.config = exports.onDestroy = void 0;
  5. const Config_1 = require("./Config");
  6. const MenuExtension_1 = require("./MenuExtension");
  7. const FairyEditor = CS.FairyEditor;
  8. const App = FairyEditor.App;
  9. App.pluginManager.LoadUIPackage(App.pluginManager.basePath + "/" + eval("__dirname") + '/Extend');
  10. App.pluginManager.LoadUIPackage(App.pluginManager.basePath + "/" + eval("__dirname") + '/Basic');
  11. const menuExt = new MenuExtension_1.default();
  12. menuExt.start();
  13. const config = Config_1.default.load();
  14. exports.config = config;
  15. App.consoleView.Log(`Config psd2fguiPluginsPath:${config.psd2fguiPluginsPath} dependencyManifestPath:${config.dependencyManifestPath}`);
  16. // console.log('hello world');
  17. function onDestroy() {
  18. //do cleanup here
  19. menuExt.onDestroy();
  20. }
  21. exports.onDestroy = onDestroy;