kingBook

导航

随笔分类 -  Cocos Creator Editor

Cocos Creator Editor 执行场景脚本
摘要:package.json { "name": "scene-tools", "version": "1.0.0", "description": "scene-tools", "author": "kingBook", "main": "main.js", "main-menu": { "Tools 阅读全文

posted @ 2020-08-25 16:40 kingBook 阅读(763) 评论(0) 推荐(0) 编辑

Cocos Creator Editor 读取和保存.meta
摘要:var fs=require('fs'); //读取.meta //result.path 如:E:\projects\ccc_test\assets\arrow.plist let plistMetaPath=result.path+".meta" let plistMetaStrings=fs. 阅读全文

posted @ 2020-07-23 00:36 kingBook 阅读(668) 评论(0) 推荐(0) 编辑

Cocos Creator Editor 编辑器扩展API记录
摘要:更多: https://forum.cocos.org/t/creator-api/92605 https://blog.csdn.net/qq_17209641/article/details/106822296 let nodeUuids=Editor.Selection.curSelectio 阅读全文

posted @ 2020-07-16 10:52 kingBook 阅读(3042) 评论(0) 推荐(0) 编辑

Cocos Creator Editor 生成uuid
摘要:let uuid=Editor.Utils.UuidUtils.uuid(); let decompressUuid=Editor.Utils.UuidUtils.decompressUuid(uuid); Editor.log(uuid);//45p/Kon2hGs7gjNzbB8Xgg Edit 阅读全文

posted @ 2020-07-03 13:57 kingBook 阅读(1554) 评论(0) 推荐(0) 编辑

Cocos Creator Editor 扩展右键菜单
摘要:https://www.electronjs.org/docs/api/menu https://www.electronjs.org/docs/api/menu-item https://forum.cocos.org/t/topic/52153 https://forum.cocos.org/t 阅读全文

posted @ 2020-05-26 15:56 kingBook 阅读(640) 评论(0) 推荐(0) 编辑

Cocos Creator Editor 创建.anim文件
摘要:```js let animObject={ "__type__": "cc.AnimationClip", "_name": "", "_objFlags": 0, "_duration": 0, "sample": 60, "curveData": {}, "events": [] }; let data=JSON.stringify(animObject,null,"\t"); Editor 阅读全文

posted @ 2020-05-21 11:14 kingBook 阅读(468) 评论(0) 推荐(0) 编辑

Cocos Creator Editor 读取一个.plist文件
摘要:readFileSync()说明:http://nodejs.cn/api/fs.html fs_fs_readfilesync_path_options xml2js 文档:https://www.npmjs.com/package/xml2js 阅读全文

posted @ 2020-05-21 00:27 kingBook 阅读(788) 评论(0) 推荐(0) 编辑

Cocos Creator Editor 第一个编辑器扩展(扩展菜单)
摘要:项目路径\packages\helloEditor\package.json name: 扩展包名,只能小写 Tools/Test: 自定的菜单 message: 扩展包名:函数名 详细说明:https://docs.cocos.com/creator/manual/zh/extension/you 阅读全文

posted @ 2020-05-12 17:25 kingBook 阅读(853) 评论(0) 推荐(0) 编辑