GamerJam

Hello people, on the project I'm working I need to use 2 atlas for the same character, due to some technical definitions.

So I created this structure of folders:

Project/Images:
/imgs1
/imgs2

I created first each atlas using the texture packer, and after that I exported the JSON (without creating an atlas, to do not create one atlas with all images.

but I keep receiving these errors:

Unity 5.5.0f3

Texture packer settings:






Atlas 1:
a.png
size: 256,256
format: RGBA8888
filter: Linear,Linear
repeat: none
a
rotate: false
xy: 2, 2
size: 150, 150
orig: 150, 150
offset: 0, 0
index: -1

Atlas 2:

a.png
size: 256,256
format: RGBA8888
filter: Linear,Linear
repeat: none
a
rotate: false
xy: 2, 2
size: 150, 150
orig: 150, 150
offset: 0, 0
index: -1

Skeleton Json:

{
"skeleton": { "hash": "AMomJX0e1TZmDAuyltok7IT4zyw", "spine": "3.6.36", "width": 0, "height": 0, "images": "" },
"bones": [
{ "name": "root" },
{ "name": "bone", "parent": "root", "x": -182, "y": 2 }
],
"slots": [
{ "name": "a", "bone": "bone", "attachment": "img1/a" },
{ "name": "b", "bone": "bone", "attachment": "img2/b" }
],
"skins": {
"default": {
"a": {
"img1/a": { "width": 300, "height": 300 }
},
"b": {
"img2/b": { "x": 360, "width": 300, "height": 300 }
}
}
},
"animations": {
"animation": {}
}
}
My sample project:

https://ufile.io/mj5ki

Did anyone here have success on doing this kind of setup on unity?

-- 03 Jul 2017, 22:32 --

EDIT - PROBLEM SOLVED! :yes:

I just found the problem, I'll post here to help if any other person is having too.

---

go inside of your skeleton data, and remove the paths of the folders from the slots and skins, for example:

If you have:
{ "name": "imageFolder/a", "bone": "bone", "attachment": "imageFolder/a" }
let it like this
{ "name": "a", "bone": "bone", "attachment": "a" },
GamerJam
Posts: 3


Return to Unity
cron