Hi,
Thank you for the guidance regarding exporting Spine animations to work in Cocos Creator. I wanted to share how I resolved my issue so it may help others facing the same problem.
Problem:
I created a character animation in Spine (v4.2) and exported it in JSON format. However, the JSON file failed to load in Cocos Creator.
Solution Steps:
Spine Runtime Version Compatibility:
Ensure the Spine runtime version used in Cocos Creator matches the Spine editor version. In my case, Cocos Creator didn’t support Spine v4.2 exports directly.
Using Spine v3.8 for Export:
I first imported the animation into Spine version 3.8 (a version compatible with the Cocos Creator runtime).
Then, I exported the animation from Spine v3.8 in JSON format.
Adjusting Mesh Issues:
After importing the Spine animation into Cocos Creator, the animation worked, but the mesh was slightly distorted. I manually fixed the mesh issues within Spine v3.8, and everything worked fine after that.
Outcome: :
This process allowed me to successfully import and use Spine animations in Cocos Creator. If anyone faces similar issues, I hope these steps help!
Thanks again for the support! :