As The last ship sailed towards the distant horizon I sat there watching on a rock My mind slowly drifting away Forming into my... Dreamtale
Spine Json Format
2018-01-20 / 11 min read

Due to the art of negligence caused the animation slot error disable/enable and slot deformation error, in this case, you can simply modify the animation json re-import to get the correct effect.

Situation --- wrongly disabled/enabled slots:

  • find the node of animation clip in json file, in my case it was "animations/fengmian".
  • if need disable a slot, just add the corresponding slot with the name of "null" attachment at the right time.
  • on the contrary, give the attachment a right name just like "left_01".
  • reimport the spine animation folder in Unity.
jietu20180121-003817

Situation --- wrongly shape of slot:

  • find the slot defination node under "skin" node.
  • edit the values of vertices,

"vertices": [321.68, 254.51, 327.09, -136.44, -80.25, 247.03, -74.84, -143.92, 256.43, 0.82, 37.6, -7.7],

  • reimport the spine animation folder in Unity.
    then I successfully changed the width of left book cover:
    jietu20180121-003949
{
	"animations": {
		"fengmian": {
			"slots": {
				"left_01": {
					"attachment": [{
						"name": null,
						"time": 0
					}, {
						"name": "left_01",
						"time": 0.6333333333333333
					}]
				},
				"fengmian_01": {
					"attachment": [{
						"name": "fengmian_01",
						"time": 0
					}, {
						"name": null,
						"time": 0.6333333333333333
					}]
				},
				"biantiao_1_01": {
					"attachment": [{
						"name": "biantiao_1_01",
						"time": 0
					}, {
						"name": null,
						"time": 0.06666666666666667
					}]
				}
			},
			"deform": {
				"default": {
					"fengmian_01": {
						"fengmian_01": [{
							"time": 0.06666666666666667,
							"offset": 2,
							"vertices": [5.160000000000025, 14.460000000000008, 0, 0, 3.75, 11.539999999999992]
						}, {
							"time": 0.26666666666666666,
							"offset": 2,
							"vertices": [11.839999999999975, 90, 0, 0, 10.439999999999998, 87.08, -0.2400000000000091, 37.46, -0.2400000000000091, 37.46, -0.2400000000000002, 37.46]
						}, {
							"time": 0.5,
							"offset": 2,
							"vertices": [13.490000000000009, 183.44, -7.280000000000001, -1.6699999999999875, 12.089999999999996, 180.51, 0.7799999999999727, 95.29999999999998, 0.7800000000000011, 95.3, 0.7800000000000002, 95.3]
						}, {
							"time": 0.6,
							"offset": 2,
							"vertices": [13.850000000000023, 203.69, -7.280000000000001, -1.6699999999999875, 12.449999999999996, 200.76, 0.7799999999999727, 95.29999999999998, 0.7800000000000011, 95.3, 0.7800000000000002, 95.3]
						}]
					},
					"left_01": {
						"left_01": [{
							"vertices": [7.550000000000011, -215.3, 0, 0, 7.549999999999997, -215.3, 0, 0, -2.5, -105.06, 2.8999999999999986, -104.96],
							"time": 0.6333333333333333
						}, {
							"vertices": [3.8500000000000227, -92.68, 0, 0, 3.8499999999999943, -92.68, 0, 0, -1.5, -63.04, 1.740000000000002, -62.97999999999999],
							"time": 0.7999999999999999
						}]
					}
				}
			}
		},
		"neiye": {
			"slots": {
				"left_01": {
					"attachment": [{
						"name": "left_01",
						"time": 0
					}]
				},
				"zfy": {
					"attachment": [{
						"name": "zfy",
						"time": 0.5333333333333333
					}]
				},
				"fengmian_01": {
					"attachment": [{
						"name": null,
						"time": 0
					}]
				},
				"nei1_01": {
					"attachment": [{
						"name": null,
						"time": 0.5333333333333333
					}]
				},
				"biantiao_1_01": {
					"attachment": [{
						"name": "biantiao_1_01",
						"time": 0
					}, {
						"name": null,
						"time": 0.06666666666666667
					}]
				}
			},
			"deform": {
				"default": {
					"nei1_01": {
						"nei1_01": [{
							"time": 0.13333333333333333,
							"offset": 2,
							"vertices": [3.0299999999999727, 77.15, 0, 0, 3.030000000000001, 77.15, -0.4300000000000068, 28.150000000000002, -0.4300000000000068, 28.15, -0.4299999999999997, 28.150000000000002]
						}, {
							"vertices": [-3.670000000000016, 1.289999999999992, 3.6399999999999864, 171.97, -1.5, 3.3799999999999955, 3.6400000000000006, 171.97, -6.160000000000025, 79.82, -6.159999999999997, 79.82, -6.16, 79.82],
							"time": 0.33333333333333337
						}, {
							"vertices": [-3.670000000000016, 1.289999999999992, -0.339999999999975, 230.27, -1.5, 3.3799999999999955, -0.3400000000000034, 230.27, -7.759999999999991, 116.25000000000001, -7.759999999999991, 116.25, -7.76, 116.25],
							"time": 0.4666666666666667
						}]
					},
					"zfy": {
						"zfy": [{
							"vertices": [11.410000000000025, -220.73, 0, 0, 5.600000000000001, -218.13, 0, 0, -2.490000000000009, -116.52000000000001, -0.00999999999999801, -112.82],
							"time": 0.5333333333333333
						}, {
							"vertices": [29.079999999999984, -96.62, 0, 0, 25.6, -95.06, 0, 0, 21.099999999999994, -88.09, 22.269999999999996, -84.73],
							"time": 0.6666666666666666
						}]
					}
				}
			}
		}
	},
	"bones": [{
		"name": "root"
	}, {
		"rotation": 89.1319,
		"y": -140,
		"length": 264,
		"parent": "root",
		"name": "nei1_01",
		"x": 132
	}, {
		"rotation": 89.5787,
		"y": -133,
		"length": 272,
		"parent": "root",
		"name": "nei2_01",
		"x": 123
	}, {
		"rotation": 91.0122,
		"y": -141,
		"length": 283,
		"parent": "root",
		"name": "fengmian_01",
		"x": 115
	}, {
		"rotation": 90,
		"y": -138,
		"length": 294,
		"parent": "root",
		"name": "right_01",
		"x": 145
	}, {
		"rotation": 88.9351,
		"y": -126,
		"length": 269,
		"parent": "root",
		"name": "left_01",
		"x": -149
	}, {
		"rotation": 88.8542,
		"y": -24,
		"length": 50,
		"parent": "root",
		"name": "biantiao_2_01",
		"x": 287
	}, {
		"rotation": 0.6296,
		"y": -17,
		"length": 91,
		"parent": "root",
		"name": "biantiao_1_01",
		"x": 194
	}],
	"slots": [{
		"name": "right_01",
		"bone": "right_01",
		"attachment": "right_01"
	}, {
		"name": "left_01",
		"bone": "left_01"
	}, {
		"name": "nei2_01",
		"bone": "nei2_01",
		"attachment": "nei2_01"
	}, {
		"name": "nei1_01",
		"bone": "nei1_01",
		"attachment": "nei1_01"
	}, {
		"name": "biantiao_2_01",
		"bone": "biantiao_2_01",
		"attachment": "biantiao_2_01"
	}, {
		"name": "biantiao_1_01",
		"bone": "biantiao_1_01",
		"attachment": "biantiao_1_01"
	}, {
		"name": "fengmian_01",
		"bone": "fengmian_01",
		"attachment": "fengmian_01"
	}, {
		"name": "zfy",
		"bone": "left_01"
	}],
	"skeleton": {
		"images": "",
		"hash": "b8c20f0ff3cf5db24e73502f4ddd692b",
		"spine": "3.5.0"
	},
	"skins": {
		"default": {
			"left_01": {
				"left_01": {
					"type": "mesh",
					"edges": [0, 2, 2, 6, 6, 4, 4, 0],
					"vertices": [321.68, 254.51, 327.09, -136.44, -80.25, 247.03, -74.84, -143.92, 256.43, 0.82, 37.6, -7.7],
					"hull": 6,
					"width": 291,
					"uvs": [0, 0, 1, 0, 0, 1, 1, 1, 0.52388, 0.1694, 0.53918, 0.71405],
					"triangles": [0, 4, 1, 4, 5, 1, 5, 2, 3, 1, 5, 3, 4, 0, 5, 0, 2, 5],
					"height": 402
				}
			},
			"nei1_01": {
				"nei1_01": {
					"type": "mesh",
					"edges": [0, 2, 2, 6, 6, 4, 4, 0],
					"vertices": [323.3, 147.42, 327.38, -121.55, -52.65, 141.72, -48.58, -127.25, 311.57, 17.77, 153.5, 7.78, 6.69, 7.45],
					"hull": 8,
					"width": 269,
					"uvs": [0, 0, 1, 0, 0, 1, 1, 1, 0.48123, 0.03644, 0.50948, 0.45718, 0.50242, 0.84761],
					"triangles": [0, 4, 1, 4, 5, 1, 6, 2, 3, 1, 5, 3, 5, 6, 3, 4, 0, 5, 2, 6, 5, 0, 2, 5],
					"height": 376
				}
			},
			"fengmian_01": {
				"fengmian_01": {
					"type": "mesh",
					"edges": [0, 2, 2, 6, 6, 4, 4, 0],
					"vertices": [346.91, 133.39, 341.89, -150.56, -55.03, 140.49, -60.04, -143.46, 272.77, -12.57, 139.9, -9.62, 6.43, -6.61],
					"hull": 8,
					"width": 284,
					"uvs": [0, 0, 1, 0, 0, 1, 1, 1, 0.51849, 0.17799, 0.51637, 0.50858, 0.51408, 0.84067],
					"triangles": [4, 5, 1, 0, 4, 1, 6, 2, 3, 1, 5, 3, 5, 6, 3, 2, 6, 5, 0, 5, 4, 0, 2, 5],
					"height": 402
				}
			},
			"biantiao_2_01": {
				"biantiao_2_01": {
					"width": 27,
					"rotation": -88.85,
					"y": 3.41,
					"height": 68,
					"x": 20.44
				}
			},
			"zfy": {
				"zfy": {
					"type": "mesh",
					"edges": [0, 2, 2, 6, 6, 4, 4, 0],
					"vertices": [306.61, 144.25, 311.67, -128.28, -64.23, 137.36, -59.16, -135.17, 216.02, 9.21, 46.34, -2.23],
					"hull": 6,
					"width": 280,
					"uvs": [0, 0, 1, 0, 0, 1, 1, 1, 0.48914, 0.25097, 0.51959, 0.70891],
					"triangles": [0, 4, 1, 4, 5, 1, 5, 2, 3, 1, 5, 3, 0, 2, 4, 4, 2, 5],
					"height": 381
				}
			},
			"right_01": {
				"right_01": {
					"width": 313,
					"rotation": -90,
					"y": 9,
					"height": 403,
					"x": 136
				}
			},
			"nei2_01": {
				"nei2_01": {
					"width": 276,
					"rotation": -89.58,
					"y": 0.46,
					"height": 376,
					"x": 130.5
				}
			},
			"biantiao_1_01": {
				"biantiao_1_01": {
					"width": 109,
					"rotation": -0.99,
					"y": 8.99,
					"height": 60,
					"x": 46.1
				}
			}
		}
	}
}