https://github.com/medvejut/dotween-timeline
Timeline component for DOTween Pro
https://github.com/medvejut/dotween-timeline
dotween unity unity3d
Last synced: 12 months ago
JSON representation
Timeline component for DOTween Pro
- Host: GitHub
- URL: https://github.com/medvejut/dotween-timeline
- Owner: medvejut
- License: mit
- Created: 2025-01-26T18:54:36.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-07T23:45:56.000Z (12 months ago)
- Last Synced: 2025-04-08T00:29:03.615Z (12 months ago)
- Topics: dotween, unity, unity3d
- Language: C#
- Homepage:
- Size: 358 KB
- Stars: 56
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DOTween Timeline
[](LICENSE)
A pocket timeline solution for DOTween Pro. Configure and organize complex tween animations directly in the Inspector.

## Installation
1. **Required**: [**PRO**](https://dotween.demigiant.com/pro.php) version of DOTween.
2. Download the latest ```.unitypackage``` file from the [Releases page](https://github.com/medvejut/dotween-timeline/releases).
3. Import it into your project via **Assets > Import Package**.
## How to use
Add the **DOTween > DOTween Timeline** component to a GameObject (use a separate GameObject for each animation sequence).
Control the timeline from code:
```c#
[SerializeField] private DOTweenTimeline timeline;
var tween = timeline.Play();
tween.OnComplete(() => Debug.Log("OnComplete"));
tween.Pause();
```
### Sample
A sample scene is included to help you get started. You can find it here: _Plugins/DOTweenTimeline/Sample_\
Open it to see an example of how to configure and use the timeline in practice.
## Recommendations
### 1. Disable default DOTween Pro preview controls
In the Inspector, on any DOTween animation component:\

### 2. Enable TextMeshPro support in DOTween
Go to _Tools > Demigiant > DOTween Utility Panel_ > press _"Setup DOTween..."_ > enable _TextMeshPro_:\

## Extras
### DOTween Timeline Player component
Automatically plays animations without code.\
Just add the **DOTween > DOTween Timeline Player** component to the same GameObject with the Timeline.
### Extra Actions
In addition to standard tweens, you can add special timeline actions via the Add dropdown:\

### DOTweenCallback component
A visual replacement for Sequence.InsertCallback().\
Use the _onCallback_ UnityEvent in the Inspector or from code:
```c#
[SerializeField] private DOTweenCallback callback;
callback.onCallback.AddListener(() => Debug.Log("Callback"));
```

### DOTweenFrame component
Triggers immediate state changes in a single frame.\
Perfect for setting position, rotation, color, and more, without animation.\