Giter Site home page Giter Site logo

gabrielbigardi / unity-2d-sprite-animator Goto Github PK

View Code? Open in Web Editor NEW
55.0 3.0 8.0 66 KB

Performatic, simple and easy animator for 2D games in Unity Engine

License: MIT License

C# 100.00%
unity 2d sprite animator custom fast performatic easy editor

unity-2d-sprite-animator's Introduction

2D Sprite Animator for Unity Engine

Tired of the "Unity Animator Hell", want more performance and faster workflow ? You've gone into the right place, this is a project i've made to replace Unity Animator usage on 2D projects, it's more performatic, simple and easy to use.

How to install

Package Manager (recommended)

  • 1 - Open the package manager (Window > Package Manager).
  • 2 - Click on the plus icon and "Add package from git URL...".
  • 3 - Enter https://github.com/GabrielBigardi/2D-Sprite-Animator.git and click "Add".
  • 4 - Wait until the package manager finishes installing the package and recompiling.

Package Importing

  • 1 - Download the latest release.
  • 2 - Double-click the .unitypackage or import it.

Lazy way

  • 1 - Download this repository as ZIP or by cloning it.
  • 2 - Drag it into your "Assets" folder.

Why to use

Escaping Unity's Animator Hell

  • Unity's Animator was made for 3D games, it has a lot of unuseful interpolation settings and it's a hell to manage.
  • Unity's Animator is not fast to setup, you need to create animations, save it on a folder, setup transitions/parameters, try to organize the Animator window, etc...

Performance

  • Unity's Animator is pretty expensive for simple 2D games, more about that in the benchmarking section.

Easily Extensible and more control

  • It's pretty easy to upgrade this code to your liking as it's a pretty simple and basic Sprite Animator.
  • Unity's Animator don't give you enough control for 2D (and sometimes even for 3D) games, there isn't a easy way of doing things like: checking current frame, checking which animation you are, checking if animation has ended, etc...

Benchmarking

For the benchmark i did a simple test on a empty URP project with 2D Rendering/Lighting and 10.000 2D characters playing a 5-frames-long idle animation, here's the results:

Unity Default Animator

  • Animator disabled: 130 FPS.
  • Animator enabled: 15 FPS.

Sprite Animator

  • Animator disabled: 130 FPS.
  • Animator enabled: 85 FPS.

Where can i find further documentation about (codes and other things)?

That's as easy as clicking here

How do i contribute to this project?

Click here

Contact

Discord: Gabriel Bigardi#2292
Twitter: @BigardiGabriel
Email: [email protected]

License

Unity-2D-Sprite-Animator is licensed under the MIT license, so you can comfortably use it in commercial applications.

unity-2d-sprite-animator's People

Contributors

arewerage avatar danilomacb avatar gabrielbigardi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

unity-2d-sprite-animator's Issues

Add assembly definition to make import via git URL possibe

Hi, adding the package via git URL does not work because your repository does not have an assembly definition.
I cannot create Sprite Animation assets nor add any related components to GameObjects when importing this way.
Warnings:
image

Please add an assembly definition file to this reposiory. This is a common practice used in similar packages.
Example:
image

Calling an event on a specific frame

Thanks for the cool asset. Can you tell me how to make the event to be called on a specific frame (for example, attack and need to create a collider on the frame of the impact, etc.) If this does not exist, is it planned to add such functionality?

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.