main.ts 766 B

123456789101112131415161718192021
  1. //FYI: https://github.com/Tencent/puerts/blob/master/doc/unity/manual.md
  2. import Config from "./Config";
  3. import MenuExtension from "./MenuExtension";
  4. const FairyEditor = CS.FairyEditor
  5. const App = FairyEditor.App;
  6. App.pluginManager.LoadUIPackage(App.pluginManager.basePath + "/" + eval("__dirname") + '/Extend')
  7. App.pluginManager.LoadUIPackage(App.pluginManager.basePath + "/" + eval("__dirname") + '/Basic')
  8. const menuExt = new MenuExtension();
  9. menuExt.start();
  10. const config = Config.load();
  11. App.consoleView.Log(`Config psd2fguiPluginsPath:${config.psd2fguiPluginsPath} dependencyManifestPath:${config.dependencyManifestPath}`);
  12. // console.log('hello world');
  13. function onDestroy() {
  14. //do cleanup here
  15. menuExt.onDestroy();
  16. }
  17. export { onDestroy, config };