|
static Coroutine | Tween (float from, float to, float seconds, bool unscaledTime, Easing easing, System.Action onBegin, System.Action< float > onValue, System.Action onEnd) |
|
static Coroutine | Tween (Vector2 from, Vector2 to, float seconds, bool unscaledTime, Easing easing, System.Action onBegin, System.Action< Vector2 > onValue, System.Action onEnd) |
|
static Coroutine | Tween (Vector3 from, Vector3 to, float seconds, bool unscaledTime, Easing easing, System.Action onBegin, System.Action< Vector3 > onValue, System.Action onEnd) |
|
static Coroutine | Tween (Quaternion from, Quaternion to, float seconds, bool unscaledTime, Easing easing, System.Action onBegin, System.Action< Quaternion > onValue, System.Action onEnd) |
|
static Coroutine | Tween (Color from, Color to, float seconds, bool unscaledTime, Easing easing, System.Action onBegin, System.Action< Color > onValue, System.Action onEnd) |
|
General purpose tweener.
Example: fading out audio source volume over 0.2 seconds: var audioSource = GetComponent<AudioSource>(); Tweener.Tween(1, 0, 0.2f, false, Tweener.Easing.Linear, onBegin: null, onValue: (x) => audioSource.volume = x, onEnd: null);