Skip to main content

Tweener Tiles

TweenerFlex

This is the best tile to use when experimenting with tweens. When viewed in a TilePlus Selection inspector only the fields appropriate for the particular 'target' are displayed.

Note about Color tweens: there's no Ease Function for these. 'Lerp' is always used.

For example: scale

TweenFlexScale.png

For example: matrix

MatrixTween2.png

When tweening any of the Matrix varieties, EaseFunction is used for the Position tween, EaseRotation is used for the Rotation tween, and EaseScale is used for the Scale tween.

Matrix Hints

When using Matrix tweens you can tween the entire matrix (position, rotation, scale) or any of the components.

Tweener-matrixhints.png

One can use this to create, say, a Matrix tween that only affects rotation and position but not scale. This is equivalent to executing a Position and Rotation tween at the same time.

TweenSpec

This tile allows you to use one tween from a TweenSpec asset.

TweenSpecSeqTile.png

The Spec Index determine which tween from the asset is used.

TweenSpecSequence

This tile allows you to run an entire sequence from a TweenSpec asset.

TweenerSeqTile.png

It just plays the entire sequence. You can control the number of loops.

If Loop Interactive Mode is checked, the sequence is forced to not loop.

When the sequence completes, it restarts with a fresh set of value fom the Tween Spec asset. Hence, if you change values of this asset while the editor is Playing, such changes will be seen when the sequence restarts. As is true for project assets, the changes will remain after you exit play mode. It's a great way to play with sequences and Matrix-style tweens.

The TweenSpec asset

This is a project-level asset where you can set up one or more tweens. Use them independently with the TweenSpec tile or as a sequence using a TweenSpecSequence tile.

This asset has a custom UIElements inspector that works similarly to what you see in the TweenerFlex tile.

A great way to play with tweens and learn how they work with tiles is to use the TweenSpecSequence tile with the Loop Interactive Mode active. You can change the fields in the TweenSpec asset and see the change the next time that the sequence loops.