https://github.com/sgaumin/animexpress
Lightweight Unity Utility to quickly setup 2D sprite-sheet animations
https://github.com/sgaumin/animexpress
csharp editor extension gamedev tool unity unity-editor unity2d
Last synced: 4 months ago
JSON representation
Lightweight Unity Utility to quickly setup 2D sprite-sheet animations
- Host: GitHub
- URL: https://github.com/sgaumin/animexpress
- Owner: sgaumin
- License: mit
- Created: 2022-10-10T04:50:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-17T11:42:52.000Z (about 2 years ago)
- Last Synced: 2025-04-12T11:43:18.715Z (about 1 year ago)
- Topics: csharp, editor, extension, gamedev, tool, unity, unity-editor, unity2d
- Language: C#
- Homepage:
- Size: 957 KB
- Stars: 13
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Anim-Express
[](https://unity3d.com/get-unity/download)
[](https://github.com/sgaumin/AnimExpress/blob/main/LICENSE.md)
[](https://twitter.com/Seb_gamedev)
**Lightweight Unity Utility to quickly setup 2D animations**
## Installation
You can install this library by the steps below.
1. Select **Window > Package Manager** from the menu bar.
2. Click the **+** button in the upper left corner of the window and select **Add package from git URL...**.
3. Enter the following URL in the input field and click **Add**.
```
https://github.com/sgaumin/AnimExpress.git
```
## Setup
### Animation Asset
After importing texture in the project, we can use utility method to generate animation assets.
### Animator Component
## Features
### Play Animation
```csharp
animator = GetComponent();
animator.Play("AnimationName");
```
### Stop Animation
```csharp
animator = GetComponent();
animator.Stop();
```
### Event Subscription
```csharp
private AnimatorExpress animator;
private void Awake()
{
animator = GetComponent();
animator.AddListener("FrameName_0", CallBack1);
animator.AddListener("FrameName_1", CallBack2);
}
private void OnDestroy()
{
animator.RemoveListener("FrameName_0", CallBack1);
animator.RemoveListener("FrameName_1", CallBack2);
}
```
## Support
If you ever come across any issues please feel free to report to the [Issues](https://github.com/sgaumin/AnimExpress/issues) page on this repository. All feedback is appreciated, and will be
taken on board for any future updates.
## License
[MIT License](https://github.com/sgaumin/AnimExpress/blob/main/LICENSE.md)