PotaTween
Installation
You have two options
- download and extract the zip inside your Assets folder
- in your terminal type
git clone https://github.com/GabrielCapeletti/PotaTween.git
This will automatically create a folder called PotaTween
Getting Started
Animation from Editor
- Add
PotaTween
Component to the GameObject you want to animate. - In the Inspector set the values as the image ->
- Done! When you play the game the animation will automatically start!
Animation from Code
- From any piece of code, where you want to play the animation, just type
PotaTween tween = PotaTween.Create(gameObject, 0);
tween.SetScale(Vector3.zero, Vector3.one); // Animates from scale 0 to 1
tween.Play();
You can add a parameter to the method Play(here)
to dispach a callback on finish animation.