Hello, guys!
I have a problem with meshes in Spine. I exported my prototype to JSON and I see the skins:
"Head": {
"Head": {
"type": "mesh",
"uvs": [ 0.82276, 0.14216, 0.94628, 0.40787, 0.94313, 0.87105, 0.64554, 0.6735, 0.73506, 0.81918, 0.41776, 0.99999, 0.14319, 0.96212, 0.04044, 0.75901, 0.04193, 0.50507, 0.04852, 0.1682, 0.24261, 0.02619, 0.56473, 0.10215 ],
"triangles": [ 5, 3, 4, 3, 5, 7, 5, 6, 7, 3, 7, 8, 11, 3, 8, 1, 2, 3, 11, 8, 10, 8, 9, 10, 3, 0, 1, 3, 11, 0 ],
"vertices": [
80.71, -36.23,
54.22, -47.16,
15.48, -48.39,
23.88, -10.67,
0.34, -28.98,
-8.81, 4.93,
-1.18, 31.93,
17.44, 47.11,
42.82, 52.33,
71.6, 44.84,
90.97, 24.88,
92.83, -7.3
],
"hull": 12,
"edges": [ 6, 8, 4, 6, 22, 0, 0, 2, 2, 4, 20, 22, 16, 18, 18, 20, 12, 14, 14, 16, 8, 10, 10, 12 ],
"width": 124,
"height": 124
}
},
"Arm": {
"Arm": { "x": 35.5, "y": 0.56, "rotation": 90.45, "width": 15, "height": 83 }
}
In the simple "region" skin we have x, y coordinates and I can set the position of my frame relative to other frames when I render them on canvas. But in "mesh" skin I don't have these coordinates.
How can I set the position of my mesh frame?