生成Creator长短UUID
let uuid=Editor.Utils.UuidUtils.uuid();
Editor.log(uuid);//45p/Kon2hGs7gjNzbB8Xgg
let decompressUuid=Editor.Utils.UuidUtils.decompressUuid(uuid);
Editor.log(decompressUuid);//45a7f2a8-9f68-46b3-b823-3736c1f17820
发送ipc消息
// send ipc message to panel
Editor.Ipc.sendToPanel('actions-panel', 'actions-panel:hello');
打开面板
// open entry panel registered in package.json
Editor.Panel.open('actions-panel');
项目根目录
Editor.Project.path
插件资源mount runtime资源到资源管理器中
“runtime-resource”: {
“path”: “runtime-assets”,
“name”: “component”
},
“reload”: {
“ignore”: [
“actions-panel/runtime-assets/**/*”
]
}