Using Spriter Pro

I purchased Spriter Pro early today and have created a simple animation for a character. I’m trying to import it into Unity. I went through several free scripts as well has non-free scripts from the asset store. I’m feeling like this is a total bust and pretty disappointed with the support for Unity as well as Mac. I’m novice at Unity so maybe I’m just not getting it.

So I feel like giving up on it. I took a look at the scml file that Spriter Pro generates and think I can write the controller myself to do simple transitions between frames. All I need is-

  • Add the animation json/xml files to a prefab with paths to images.

I want to be able to attach the json/xml Spriter generates in it’s save file to my prefab, and using the settings already available in those files to decide the base animation.

  • Call an animation in code.

I want to be able to call the animation to play in code. If a bullet connects with a target the collider event should call the appropriate animation. Like Animator.Run("Hit"). Also probably be able to tell the animator whether to run one, a number of time, or to loop. Also, also probably give it a callback to run once the animation completes.

  • Use the bare minimum, each moveable piece should be a separate image.

Currently all i’ve found is to export each frame as a whole. Am I supposed to loop through each frame? I think it should be smart enough to transition each individual piece. This will save heaps in memory and disk space.

  • Allow transitioning from one animation to another smoothly.

Instead of going from a walking animation to a slashing animation abruptly it should transition smoothly from one animation to the next. You should also be able to transition from any keyframe in one animation to any keyframe in another animation smoothly.


Am I reinventing the wheel here? Is this easier than I think it is? I don't want to rewrite code that exists already but I'm just not seeing in Unity what I'm being shown in the tutorial videos. I don't know if it's a different version of Unity or that I'm on Mac but It's frustrating. Has anyone here had success with Spriter and have you been able to do what I'd want/expect to be able to do with my above checklist? If not, it will probably be worth it to me to write this myself.

I’m pretty sure @TheValar has used Spriter Pro recently. He used to be a big Sprites and Bones tool user.
I don’t know why he switched. Hmmm? :slight_smile:

im more curious in " Call an Animation in Code ", that thing is great…


Es Krim

have you tried this open source plugin?
https://github.com/Dharengo/Spriter2UnityDX