bonus2113 Posted June 25, 2014 Report Share Posted June 25, 2014 I've decided to open a new thread for this implementation as the old thread is mighty out of date (especially the first page is misleading). Spriter2Unity Get it from GitHub: https://github.com/bonus2113/Spriter2Unity A tool that converts SCML files into unity .prefab and .anim files Based on the original work by Malhavok (https://github.com/Malhavok/Spriter2Unity) About What it does: [*:o70kr28x]for each entity in SCML file creates a Unity prefab[*:o70kr28x]each entity got it's sprites assigned as long as you imported these sprites before conversion[*:o70kr28x]for each animation in SCML file creates a Unity animation under the prefab[*:o70kr28x]sprites are changed during animations, so only 1 SpriteRenderer is used for each node in the spriter file[*:o70kr28x]an AnimatorController is created (if it doesn't exist already)[*:o70kr28x]an Animator component is attached to the prefab. It gets a reference to the AnimatorController. Known issues: [*:o70kr28x]Only quadratic, cubic, linear and instant curves are supported[*:o70kr28x]Mainline curves are not yet imported[*:o70kr28x]Only works with a "Pixels To Units" setting of 100[*:o70kr28x]Some animations throw errors when selecting/scrubbing through them in the editor. They work fine when running the game. Important missing features: [*:o70kr28x]Sounds[*:o70kr28x]Points[*:o70kr28x]Boxes Usage Copy the contents of the Assets folder into your Unity project's Assets folder or import the package from here. Any SCML files copied into the project will be automatically processed. Prefabs are created in the same folder as the SCML file. Detailed: [*:o70kr28x]Download this Unity package: https://github.com/bonus2113/Spriter2Un ... itypackage[*:o70kr28x]Open your Unity project.[*:o70kr28x]Import your whole Spriter project folder into Unity.[*:o70kr28x]With Unity open, go to the folder you saved the Unity package to and double click it.[*:o70kr28x]Unity should pop up with a dialog asking if you want to import the assets, click import on the bottom right.[*:o70kr28x]Unity should now import the Spriter2Unity package and then automatically convert your SCML files to prefabs. The prefabs will be in the same folder as the SCML files. There's an example included which imports the GrayGuy character and animates him via Mecanim. I'm currently working on the in-code documentation to make it easier for other people to contribute. You are very welcome to fork the repository and create pull requests! If you have any questions feel free to ask them here. I'd appreciate it if bug reports would be done via GitHubs issue system (https://github.com/bonus2113/Spriter2Unity/issues), but I if you don't want to create a (free) GitHub account, this forum is fine as well. Changelist 26th of June 2014: [*:o70kr28x]Fixed ZIndex Animation[*:o70kr28x]Added an example[*:o70kr28x]Implemented Sprite changing into the native Unity animations Traceycof, MaribelSher, AlisaMesy and 7 others 10 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.