0% found this document useful (0 votes)
199 views

Unity Tween Engine

This document discusses tween engines in Unity and their uses. It defines a tween as an interpolation between two values over time. Tween engines handle interpolation of object attributes automatically over time. Tweens are useful for simple animations like movement, rotation, scaling and color changes. They allow dynamic modification of transitions compared to fixed animations. Common tween engines for Unity include iTween, HOTween and LeanTween, which support 2D and 3D tweens with easing.

Uploaded by

Bui Thanh Tung
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
199 views

Unity Tween Engine

This document discusses tween engines in Unity and their uses. It defines a tween as an interpolation between two values over time. Tween engines handle interpolation of object attributes automatically over time. Tweens are useful for simple animations like movement, rotation, scaling and color changes. They allow dynamic modification of transitions compared to fixed animations. Common tween engines for Unity include iTween, HOTween and LeanTween, which support 2D and 3D tweens with easing.

Uploaded by

Bui Thanh Tung
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

Unity Tween

Engine
Edi
Knight
Agate Studio

@agatestudio

@agatestudio

Index

Definition
Why?
When to use
More
Tween Engines in Unity
Samples & Demos

@agatestudio

Definition

@agatestudio

Definition
A tween is basically an interpolation between two
values that runs for a given amount of time.
Tween Engine does a lot more than that, and handles
the life-cycles and the update mechanisms of the
interpolations for you. Moreover, it enables the
interpolation of attributes of some objects.

@agatestudio

Why use tweening (engine)?


Dynamic.
You can modify your transitions, timing, values,
easings, and other attributes with only lines of code,
rather than telling your artist/animator to
animate/fixate the object. This will faster the
production time, too.
Some tweening engine have motion path, too!

@agatestudio

When to use tweening (engine)?


Simple animations, like movement,
X

Rotation,

@agatestudio

When to use tweening (engine)?


Color/alpha transformation,

Scaling,

@agatestudio

When to use tweening (engine)?


Or all of them combined!

@agatestudio

More on tweening (engine)


Time : Time needed to complete a tween animation
Delay : Time needed to start a tween animation
Easing : Some equation to control the rate of
tweening

@agatestudio

More on tweening (engine)


Example : Without easing

@agatestudio

More on tweening (engine)


Example : With easing (double the return value when
time > 3s)

@agatestudio

More on tweening (engine)

@agatestudio

Unity Tween Engines

iTween
HOTween
LeanTween
etc

@agatestudio

iTween

Free
Complete documentation and samples
Easy to use
Tween GameObject 2D-ly and 3D-ly, GUI, even
sound!

@agatestudio

iTween
Movement

@agatestudio

iTween
Rotation

Color

@agatestudio

iTween

More on Samples & Demos later

@agatestudio

HOTween & LeanTween


More or Less like iTween
Some says that iTween is heavier in mobile
(ios/android)
HOTween & LeanTween has optimizer/optimized
version for mobile

@agatestudio

Samples and Demos


iTween
http://itween.pixelplacement.com/examples.php
More on Unity3d

Thank you!

You might also like