- 수정됨
How to export PNG sequence animation to Unity?
Hi! Im trying to export Png frame by frame animation to Unity. Can I export them as JSON format without bones?
When choosing json
export, your skeleton will be exported as skeletal animation, not as an image sequence. What is the reason why you don't want to export it as bones with attachments and want to export an image sequence instead?
My PNG sequence is imported from After Effects and only has effect transformations, the main model doesn't have movements.
After export from Spine (Json format) and import to Unity, I see three type of files: atlas, Json, and all the PNGs separately.
Can I use my image sequence as animation in Unity without bone structure?
Thanks for the clarification and sorry for the late reply.
There is a Skeleton Baking
functionality available at the SkeletonDataAsset
(the file with suffix _SkeletonData
that is generated from your imported assets). In the SkeletonDataAsset
Inspector, click on the gear icon and select Skeleton Baking
. This opens a window providing options how you can bake a Spine Skeleton with animations down to a Unity prefab using an Animator Controller to control animations. This way you do not need any Spine components to playback your animations.
Note however, that just a subset of Spine's animation features can be translated to Unity's animations, so this workflow is only recommended for very specific use cases.
Thank you for your answer Harald !!! It helps me a lot.
We have now also added a section to the spine-unity docs:
spine-unity Runtime Documentation: Skeleton Baking
At the bottom you can find a link to the list of supported and unsupported features.
Thank you for the tutorial again !