Giter VIP home page Giter VIP logo

animationimporter's Introduction

Pixelart Animation Importer for Unity

This tool is an Aseprite and PyxelEdit Animation Importer for Unity. It's already used in several projects and should work for most use cases. There is no guaranteed support though, so test and use this at your own will.

Tested with: Unity 5.6, Aseprite 1.1.13, PyxelEdit 0.4.3

Setup

Open the tool with "Window" -> "Animation Importer". If using Aseprite: Edit the path to the Aseprite Application on your system under "Config".

ASEPRITE:

Generate a file with animations (tags) in Aseprite. Save that file in your Unity project. Open the tool "Animation Importer" from the Menu "Window". Drag and drop the Aseprite asset on one of the fields according to your needs.

When you update the animations, drop the asset again on the same tool. It should use the existing AnimatorController or AnimatorOverrideController, so if you have used them in the scene or prefabs, the reference is not lost.

Steps this tool goes through:

  • call the Aseprite application and let it generate a png with all sprites and a json file with meta info
  • change the png import settings to something more appropriate to pixel art
  • import the info from the json file and delete it afterwards
  • create Unity animations
  • optional AnimatorController:
    • if does not exist: create AnimatorController and place all animations as states
    • if exists: replace animations on the first layer on all states that have the same name as one of the animation
  • optional AnimatorOverrideController
    • if does not exist: create AnimatorOverrideController and replace all animations that have the same name
    • if exists: replace all animations that have the same name

PYXELEDIT:

Tiles and Layer Blend Modes are not supported.

Generate a file with animations in PyxelEdit. Save that file in your Unity project. Open the tool "Animation Importer" from the Menu "Window". Drag and drop the PyxelEdit asset on one of the fields according to your needs.

When you update the animations, drop the asset again on the same tool. It should use the existing AnimatorController or AnimatorOverrideController, so if you have used them in the scene or prefabs, the reference is not lost.

Steps this tool goes through:

  • open the .pyxel file, which is a zip, get json data from it
  • get png layers from the .pyxel file and recreate as one png
  • change the png import settings to something more appropriate to pixel art
  • create Unity animations
  • optional AnimatorController:
    • if does not exist: create AnimatorController and place all animations as states
    • if exists: replace animations on the first layer on all states that have the same name as one of the animation
  • optional AnimatorOverrideController
    • if does not exist: create AnimatorOverrideController and replace all animations that have the same name
    • if exists: replace all animations that have the same name

AUTOMATIC IMPORT

This option reimports Animation files when Unity notifies them as changed. It looks for an AnimatorController or AnimatorOverrideController with the same name and in the same directory. Current import settings are used, not the ones from first import.

PIVOT POINTS

Pivot point settings get reused on further reimports. If you want to apply the pivot point settings from the Animation Importer on Animations that got imported already, delete the sprites and then import again.

Feedback

Send your comments and questions to [email protected] or http://twitter.com/talecrafter. You can use the GitHub Features (Issues, Pull Requests) for posting bugs, feature wishes and additional code.

Credits

Contributors:

Contains JSONObject from Boomlagoon (www.boomlagoon.com)

License

You can freely use/distribute this project in any way possible with the exception of selling it on it's own.

animationimporter's People

Contributors

albertofdzm avatar edwardrowe avatar hu9o avatar iamallama avatar openlevel avatar talecrafter avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.