- 編集済み
Exporting to Unity for use with 2D Toolkit???
Hi, I am an artist and working on a 2D game with my friend in Unity.
I am doing all the art and animations and my friend is coding.
I bought Spine because it seemed to have all the features we required to animate our characters and export them to Unity.
Now I am a bit stumped.
The example 'spineboy' files for use in Unity included a sprite sheet and other various files. I haven't a clue how to get this done.
Just wondering what is the workflow to export a character, like the example, for use in Unity?
I apologize if this has already been brought up on the forum, I had no luck when searching for it.
Thank you.
I made Spine compatible with 2d toolkit, you can download package in this topic (with example): viewtopic.php?f=3&t=554
You can do following steps to make a simple skeleton with that package:
- Create your character sprite collection and generate the atlas via 2d toolkit tools
- Create character bones with animation in Spine and export them to json file
- Create 'Spine Skeleton Data' asset, this can be done in menu (Assets->Create->tk2d->Spine Skeleton Data)
- Link skeleton data with json file and sprite collection (just drag proper assets to fields, just like in inspector)
- Create empty game object and add 'Spine Skeleton' component (Component->2d toolkit->Spine Skeleton), link it with your spine skeleton data asset
- Now you can work with your skeleton
Thanks aviktorov!
Basic Unity support is there, but I still need to do some work on 2D Toolkit, something like aviktorov's link. The spritesheet in the examples is made using one of these tools (the format is libgdx):
http://code.google.com/p/libgdx/wiki/TexturePacker
http://texturepacker.com
You won't need to use them if 2D Toolkit does it for you.
Sorry there is no documentation yet!
Thanks for replying so quick!
Talking to my programmer, he would like to know how to make an "atlas file txt asset to assign to the spine atlas? Can this be done from the 2D toolkit??"
Thanks again.
-Tilmah
Use one of the two tools linked in the post above. Choose the libgdx format if using Texture Packer Pro.
Ahh all cool!
Couldn't workout the first one (linked version), and the other costs, but I found this...
https://code.google.com/p/libgdx-texturepacker-gui/
Much easier for me a non coder. Hope this helps someone.
Thanks dudes.
Is there the need to buy both tools?
The libgdx texture packer is free.
I am using The libgdx texture packer.Choose the libgdx format.Then I get two files:A.PNG and A.TXT.(Assuming the file name is "a")
I can also use the 2D Toolkit Sprite Collection to get three files:a.png, a material.mat and a.prefab.
Can I direct conversion generated by the above two files into the following UNITY need three files.
I mean I do not want to use The 2D Toolkit Sprite Collection, because I can not always control the size of the generated picture.
aviktorov wroteI made Spine compatible with 2d toolkit, you can download package in this topic (with example): http://www.esotericsoftware.com/forum/v ... ?f=3&t=554
You can do following steps to make a simple skeleton with that package:
- Create your character sprite collection and generate the atlas via 2d toolkit tools
- Create character bones with animation in Spine and export them to json file
- Create 'Spine Skeleton Data' asset, this can be done in menu (Assets->Create->tk2d->Spine Skeleton Data)
- Link skeleton data with json file and sprite collection (just drag proper assets to fields, just like in inspector)
- Create empty game object and add 'Spine Skeleton' component (Component->2d toolkit->Spine Skeleton), link it with your spine skeleton data asset
- Now you can work with your skeleton
I could find Spine Skeleton data under Assets, but I can't find Spine Skeletong under 2d toolkit, it's not there.
I downloaded the latest version from github. Why is that? Did I miss something?