删除一些无用的代码

This commit is contained in:
xu_yanfeng
2025-01-08 18:44:26 +08:00
parent fdcb8ae1fb
commit 1907e59ba1
56 changed files with 2 additions and 14455 deletions

View File

@@ -1,8 +0,0 @@
# 翻版
在该版本中对项目结构进行了梳理,更加容易理解,同样适用webpack进行了自动编译操作
具体使用方式,在`CocosCreatorInspector`目录执行
- 个人开发过程中使用的node版本为:`11.6.0`,建议使用该node版本
- 安装依赖: `npm i`
- 编译插件: `npm run build-new`, 此时插件会生成到`src/build/`目录下
- 打开chrome插件开发者模式,加载`src/build`目录即可

View File

@@ -1,53 +0,0 @@
## 注入脚本收集的数据结构
节点树数据结构
```json
{
"scene": {
"type":"1",// 类型
"uuid": "scene-uuid",
"name": "scene-name",
"children": [
{
"uuid": "node-uuid",
"name": "node-name",
"type": "cc_Node",
"x": 960.48,
"y": 540,
"zIndex": 0,
"width": 1920.96,
"height": 1080,
"active": true,
"color": "#ffffff",
"opacity": 255,
"rotation": 0,
"rotationX": 0,
"rotationY": 0,
"anchorX": 0.5,
"anchorY": 0.5,
"scaleX": 1,
"scaleY": 1,
"skewX": 0,
"skewY": 0,
"childrenCount": 5,
"children": []
},
{
"uuid":"..."
}
]
}
}
```
缓存游戏真实的内存结构,window.inspectorGameMemoryStorage
```json
{
"node-uuid":"node-memory"
}
```
在遍历节点树的同时,会存储游戏实际的内存数据到inspectorGameMemoryStorage
## 获取某个节点信息
```
window.getNodeInfo
```