Skip to content

medvejut/dotween-timeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOTween Timeline

License: MIT

A pocket timeline solution for DOTween Pro. Configure and organize complex tween animations directly in the Inspector.

Installation

  1. Required: PRO version of DOTween.
  2. Download the .unitypackage file from the Releases page.
  3. Import it into your project via Assets > Import Package.

Usage

Add the component DOTween > DOTween Timeline to your GameObject (use a separate GameObject for each animation sequence).

Tweens will play automatically, but you can also control them from code:

[SerializeField] private DOTweenTimeline timeline;

var tween = timeline.AsSequence().Pause();

tween.OnComplete(() => Debug.Log("OnComplete"));
tween.Play();

DOTweenCallback component

Sequence.InsertCallback(), but it's a component.

  1. Add the component DOTween > DOTween Callback to your GameObject.
  2. Configure the delay and optional id
  3. Set the onCallback UnityEvent in the Inspector or from code:
[SerializeField] private DOTweenCallback callback;

callback.onCallback.AddListener(() => Debug.Log("Callback"));

About

Timeline component for DOTween Pro

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages