Tween Jobs
Tween engine for Unity based on the C# Job System
com.gilzoide.tween-jobs Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/track/tween-jobs.git 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 🍾
Total Installs
0
Last 30 daysUnique IPs
0
Approximate usersInstalls Over Time
Operating Systems
No data yet
Top Countries
No data yet
Git Versions
No data yet
Embed Install Badge
Add an install count badge to your README
Markdown
[](https://www.pkglnk.dev/pkg/tween-jobs)HTML
<a href="https://www.pkglnk.dev/pkg/tween-jobs"><img src="https://www.pkglnk.dev/badge/tween-jobs.svg?style=pkglnk" alt="pkglnk installs"></a>
No comments yet. Be the first!