Andreygg

Is there any documentation about json format in spine 4 version?
Andreygg
  • Сообщения: 2

Nate

The JSON format page is here:
Spine: JSON export format
However, it is accurate for 3.8. Some of it has changed in 4.0. We will be updating the page shortly after releasing 4.0 as the latest stable version (soon).

Note if you use the official Spine Runtimes to load your JSON data, you don't need to worry about the details of the JSON format at all.
Аватара пользователя
Nate

Nate
  • Сообщения: 11399

Mnemonic

Could you please document the bezier curve definition? Apparently, the meaning has changed between 3.x and 4.x. Is it possible to somehow convert the 4.x values to the original values? For those of us who parse the json directly without using runtimes. Thanks!
Аватара пользователя
Mnemonic
  • Сообщения: 7

Nate

Sure, we have updated the JSON format page to explain curves in 4.0.

Curves are represented differently in 4.0, so it's not possible to convert them back to how they were in 3.8.

FWIW, you would save enormous effort by using the Spine Runtimes rather than parsing the data yourself, even if you use the Spine Runtimes solely to pass the data off to something else.
Аватара пользователя
Nate

Nate
  • Сообщения: 11399

Andreygg

Now it's a small mistake in a documentation.

Slot timeline types:

attachment: Keyframes for changing a slot's attachment.
color: Keyframes for changing a slot's color.

In json color curve named as "rgba", and "color" timelineType causes an error
Andreygg
  • Сообщения: 2


Вернуться в Runtimes