Tween Jobs
Tween engine for Unity powered by the C# Job System and Burst compilation for high-performance animations. Supports tweening floats, vectors, quaternions, colors, and rects with highly configurable easing, duration, loops, and time scaling. Includes serializable tweener classes and ready-made components for seamless integration into your projects.
com.gilzoide.tween-jobs 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/tween-jobs.git README Markdown
Copy this to your project's README.md
## Installation
Add **Tween Jobs** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/tween-jobs.git
```
[](https://www.pkglnk.dev/pkg/tween-jobs)Dependencies (3)
README
Tween Jobs
(WIP) Tween engine for Unity based on the C# Job System.
Features
- Supports tweening
float,Vector2,Vector3,Vector4,Quaternion,ColorandRectvalues - Highly configurable: easing function, duration, animation speed,
deltaTimevsunscaledDeltaTime, repeat vs ping-pong loops - Tweeners are serializable C# classes that can be easily embedded in your own components
- Ready-made tween components with embedded tweeners for ease of integration
- Tween math runs in parallel jobs using the C# Job System. Jobs are compiled with Burst for maximum performance
Dependencies
- Update Manager: Update Manager is used to manage tween jobs
- Burst: used to compile jobs
- Unity Mathematics: math library
How to install
Either:
- Use the openupm registry and install this package using the openupm-cli:
openupm add com.gilzoide.tween-jobs - Install using the Unity Package Manager with the following URL:
https://github.com/gilzoide/unity-tween-jobs.git#1.0.0-preview4 - Clone this repository or download a snapshot of it directly inside your project's
AssetsorPackagesfolder.
Creating your own tweener
// MySpriteColorTween.cs
using System;
using Gilzoide.TweenJobs;
using UnityEngine;
// 1. Create a serializable class that inherits A*Tweener
// Supported tween types: float, Vector2, Vector3, Vector4, Quaternion, Color and Rect
[Serializable]
public class MySpriteColorTweener : AColorTweener
{
public SpriteRenderer targetSprite;
// 2. Implement the `Value` property
public override Color Value
{
get => targetSprite.color;
set => targetSprite.color = value;
}
}
// 3. (optional) Create a wrapper component for your tweener
public class MySpriteColorTween : ATweenComponent<MySpriteColorTweener>
{
}
// 4. Use your tweener/tween component just like the builtin ones.
// Enjoy 🍾
No comments yet. Be the first!