The Tweening package provides a system for tweening object properties in Unity. A tween is an animation of a value from a start position to an end position using an easing function, providing a natural sense of motion.
The system is lightweight, optimized, type-safe, and memory efficient. Hundreds of predefined tweening functions can be called on many common Unity objects, or you can animate anything using generic tweening functions. Tweens can be controlled with many different control methods and various callback functions.
Use the Unity Package Manager to install the Tweening package.
- Open the Package Manager in
Window > Package Manager
- Click the add (
+
) button in the status bar - Select
Add package from git URL
from the add menu - Enter the following Git URL in the text box and click Add:
https://github.com/zigurous/unity-tweening-system.git
Import the package namespace in each script or file you want to use it. You may need to regenerate project files/assemblies first.
using Zigurous.Tweening;