Unclaimed Package Is this your package? Claim it to unlock full analytics and manage your listing.
Claim This Package

Install via UPM

Add to Unity Package Manager using this URL

https://www.pkglnk.dev/track/tween-jobs.git

README

Tween Jobs

openupm

(WIP) Tween engine for Unity based on the C# Job System.

Features

  • Supports tweening float, Vector2, Vector3, Vector4, Quaternion, Color and Rect values
  • Highly configurable: easing function, duration, animation speed, deltaTime vs unscaledDeltaTime, 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

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 Assets or Packages folder.

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 days
Unique IPs
0
Approximate users

Installs 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

Style
Preview
pkglnk installs badge
Markdown
[![pkglnk installs](https://www.pkglnk.dev/badge/tween-jobs.svg?style=pkglnk)](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>

Comments

No comments yet. Be the first!