Tween Playables

March 27, 2023 · View on GitHub

Tween Animation Library for Unity Timeline

license

日本語版READMEはこちら

Overview

Tween Playables is a library that adds tween animation tracks to Unity Timeline. It adds tracks for a variety of components, making it possible to quickly and easily build complex tweens in your timeline.

Features

  • Add tracks for tween animation
  • More than 20 types of easing functions available
  • All clips can be blended
  • Simple and easy to use GUI

Setup

Requirement

  • Unity 2020.1 or higher
  • Timeline 1.2.14 or higher
  • TextMeshPro 2.0.1 or higher

Install

  1. Open the Package Manager from Window > Package Manager
  2. "+" button > Add package from git URL
  3. Enter the following to install

or open Packages/manifest.json and add the following to the dependencies block.

{
    "dependencies": {
        "com.annulusgames.tween-playables": "https://github.com/AnnulusGames/TweenPlayables.git?path=/Assets/TweenPlayables"
    }
}

Usage

  1. Select "AnnulusGames.TweenPlayables" item from the "+" button and add a track corresponding to the component you want to control.
  2. Right click > Select "Add Tween *** Clip" to add the clip to the track.
  3. Set the clip values from the Inspector.

Parameter Settings

Toggle

Whether to control that parameter. If checked, animation for that parameter will be enabled.

Start / End

Sets the start/end value of the animation.

Ease

Set the easing function. You can also set your own easing from the Animation Curve by selecting "Custom".

Relative

Whether to use relative values. If checked, the start/end values will be relative values from the start of the animation.

Controllable Components

ConponentParameter
TransformPosition
Rotation
Scale
RendererColor
Texture Offset
Texture Scale
Sprite RendererColor
Line RendererStart Color
End Color
Start Width
End Width
CameraOrthographic Size
Field of View
Background Color
Audio SourceVolume
Pitch
LightColor
Intensity
Shadow Strength
RectTransformAnchored Position
Size Delta
Rotation
Scale
Canvas GroupAlpha
GraphicColor
TextColor
Font Size
Line Spacing
TextMeshProUGUIFont Size
Color
Color Gradient
Spacing (Character, Line, Word, Paragraph)
ImageColor
Fill Amount
SliderValue
OutlineColor
Distance
ShadowColor
Distance

Known Issues

Error "DrivenPropertyManager has failed to~"

Some components may produce an error "DrivenPropertyManager has failed to register property "PropertyName" of object "Object Name" with driver "" because the property doesn't exist."

This error is due to the behavior of the DrivenPropertyManager and does not occur at runtime. Since it is an error related to property registration to the last, it does not seem to have a big impact on the project.

A thread related to this issue can be found here. https://forum.unity.com/threads/default-playables-text-switcher-track-error.502903/

License

MIT License