新建一个测试项目,加载一个包含100多张小图的plist文件,浏览器的网络检测看到请求了100多次,每次是一个单独的json文件,
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "salvo_027",
"atlas": "cd772c37-92e0-4f13-a1de-706bfe5d8e5e",
"rect": {
"x": 1323,
"y": 1711,
"width": 3,
"height": 3
},
"offset": {
"x": -92.5,
"y": 165.5
},
"originalSize": {
"width": 188,
"height": 334
},
"rotated": false,
"capInsets": [
0,
0,
0,
0
],
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": {
"x": 0,
"y": 0,
"z": 0
},
"maxPos": {
"x": 0,
"y": 0,
"z": 0
}
},
"texture": "5802f32c-d907-4e97-9d5b-80694b8a884c@6c48a",
"packable": false,
"pixelsToUnit": 100,
"pivot": {
"x": 0.5,
"y": 0.5
},
"meshType": 0
}
}
注意图中的salvo_027,我的合图文件叫salvo.plist和salvo.png,其中包含100多张小图,
然后。。。他。。。单独加载了100多次。。。
packable属性打开关闭都一样