create-cocos-plugin
Version:
## Scaffolding Your First COCOS-plugin Project
19 lines (15 loc) • 346 B
text/typescript
import { name } from '../../package.json' with { type: 'json' };
export const methods = {
async open() {
Editor.Panel.open(name);
},
getVersion() {
return Editor.App.version;
},
};
export async function load() {
console.log(`load ${name}`);
}
export function unload() {
console.log(`unload ${name}`);
}