You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spine atlas exporter offset is always 0,0
Offset should be calculated from lower-left corner.
I forked your module and wrote some additional codes.
I hope you helped a little.
exporters/index.js
lettpOffset={x: item.spriteSourceSize.x,// *Caculate lower-left corner based offset for TexturePacker .atlas formaty: item.sourceSize.h-(item.spriteSourceSize.y+item.spriteSourceSize.h)};
return{name: name,frame: frame,spriteSourceSize: spriteSourceSize,sourceSize: sourceSize,index: index,first: index===0,last: index===data.length-1,rotated: item.rotated,trimmed: trimmed,// *Added tpOffset value to use inside .msttpOffset: tpOffset,};
exporters/Spine.mst
offset: {{tpOffset.x}},{{tpOffset.y}}
The text was updated successfully, but these errors were encountered:
Spine atlas exporter offset is always 0,0
Offset should be calculated from lower-left corner.
I forked your module and wrote some additional codes.
I hope you helped a little.
exporters/index.js
exporters/Spine.mst
The text was updated successfully, but these errors were encountered: