Skip to content

Simple to use tweening library for flax. Now with SEQUENCES

License

Notifications You must be signed in to change notification settings

honzapatCZ/FTween

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 Cannot retrieve latest commit at this time.

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FTween

Simple to use tweening library for flax.

Main

As simple as doing

using FTween;

Actor.FTLocalMoveY(100, 5).Start();

Numerous extensions

Checkout your ide or /Extension/Extensions.cs

Supports Sequences

Sequence

Sequence seq = new Sequence();
seq.Append(Actor.FTLocalMoveY(100, 5));
seq.Insert(actor2.FTLocalMoveY(100, 5));

seq.Append(Actor.FTLocalMoveX(100, 5));
seq.Insert(Actor.FTLocalMoveZ(100, 5));
seq.Insert(actor2.FTLocalMoveX(-100,5));
seq.Insert(actor2.FTLocalMoveZ(-100, 5));
                        
seq.Append(Actor.FTLocalMoveY(300, 5));
seq.Insert(actor2.FTLocalMoveY(300, 5));

seq.OnComplete(() => { Debug.Log("Sequence ended"); });
seq.Start();

Supports await

Super easy

Sequence

Debug.Log("Starting test");

Debug.Log("Moving along X");
await Actor.FTLocalMoveX(100, 5).Start();
Debug.Log("Done");

Debug.Log("Moving along Y");
await Actor.FTLocalMoveY(100, 5).Start();
Debug.Log("Done");

Debug.Log("Moving along Z");
await Actor.FTLocalMoveZ(100, 5).Start();
Debug.Log("Done");

Debug.Log("Rotating");
await Actor.FTRotateQuaternion(Quaternion.Euler(5, 45, 45), 5).Start();
Debug.Log("Done");

About

Simple to use tweening library for flax. Now with SEQUENCES

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages