[分享] TexturePacker 大图拆分成小图插件

为了响应组织号召,我开发了一个小插件,可以把 TexturePacker 的合图还原成小图。

https://github.com/zilongshanren/unpack-textureatlas

欢迎大家试用( 报 Bug )。

10赞

沙发帮顶子龙大大:sunglasses:

大神,这个怎么用的?我的是1.3.1的版本

1.5 试了下 good

好东西

使用了cocosdio 导出的plist 和 png 报错
Error: Invalid edge extension [object Object]
at Sharp.extend (/Applications/CocosCreator4.app/Contents/Resources/utils/sharp/lib/operation.js:219:11)
at /Users/wh/.CocosCreator/packages/unpack-textureatlas-master/main.js:118:18
at /Applications/CocosCreator4.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:181:20
at Object.async.forEachOf.async.eachOf (/Applications/CocosCreator4.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:233:13)
at Object.async.forEach.async.each (/Applications/CocosCreator4.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:209:22)
at Object.unpack (/Users/wh/.CocosCreator/packages/unpack-textureatlas-master/main.js:87:17)
at emitOne (events.js:96:13)
at EventEmitter.emit (events.js:191:7)
at _main2main (/Applications/CocosCreator4.app/Contents/Resources/app.asar/editor-framework/lib/main/ipc.js:1:1652)
at Ipc.sendToMain (/Applications/CocosCreator4.app/Contents/Resources/app.asar/editor-framework/lib/main/ipc.js:1:3956)
at process.on.t (/Applications/CocosCreator4.app/Contents/Resources/app.asar/editor/core/editor-init.js:1:1068)
at emitOne (events.js:101:20)
at process.emit (events.js:191:7)
at process._fatalException (bootstrap_node.js:308:26)

1.9.1表示 well

2.0.8 不能用了啊,啥反应都没有

mark

+11

Mark

编辑器2.2.2版本不能用,发现是编辑器版本兼容问题,已经提了一份PR,可以按照这个修改
https://github.com/zilongshanren/unpack-textureatlas/pull/3/commits/2396206db6cf328bb412d4afd6483a4577722618

或者clone 这个库
https://github.com/dengxiaochun/unpack-textureatlas