Class Tweener
Events
onCompleted
Called when Completed.
public event Action onCompleted;
Properties
defaultCurveType
public static CurveType defaultCurveType { get; set; }
completed
public bool completed { get; private set; }
task
public Task task { get; }
Methods
DoLoop(float duration, Action<float> callback)
public static Tweener DoLoop(float duration, Action<float> callback)
DoLoop(float duration, Action<float> callback, bool timeScale)
public static Tweener DoLoop(float duration, Action<float> callback, bool timeScale)
DoLoop(float duration, Action<float> callback, CurveType curveType)
public static Tweener DoLoop(float duration, Action<float> callback, CurveType curveType)
DoLoop(float duration, Action<float> callback, CurveType curveType, bool timeScale)
Loops infinitely within the interval [-1,1], the loop time is duration.
public static Tweener DoLoop(float duration, Action<float> callback, CurveType curveType, bool timeScale)
DoLoop(float min, float max, float duration, Action<float> callback)
public static Tweener DoLoop(float min, float max, float duration, Action<float> callback)
DoLoop(float min, float max, float duration, Action<float> callback, bool timeScale)
public static Tweener DoLoop(float min, float max, float duration, Action<float> callback, bool timeScale)
DoLoop(float min, float max, float duration, Action<float> callback, CurveType curveType)
public static Tweener DoLoop(float min, float max, float duration, Action<float> callback, CurveType curveType)
DoLoop(float min, float max, float duration, Action<float> callback, CurveType curveType, bool timeScale)
Loops infinitely within the interval [min, max], the loop time is duration.
public static Tweener DoLoop(float min, float max, float duration, Action<float> callback, CurveType curveType, bool timeScale)
DoLerp(float duration, Action<float> callback)
public static Tweener DoLerp(float duration, Action<float> callback)
DoLerp(float duration, Action<float> callback, bool timeScale)
public static Tweener DoLerp(float duration, Action<float> callback, bool timeScale)
DoLerp(float duration, Action<float> callback, CurveType curveType)
public static Tweener DoLerp(float duration, Action<float> callback, CurveType curveType)
DoLerp(float duration, Action<float> callback, CurveType curveType, bool timeScale)
From 0 to 1 within duration.
public static Tweener DoLerp(float duration, Action<float> callback, CurveType curveType, bool timeScale)
DoLerp(float start, float end, float duration, Action<float> callback)
public static Tweener DoLerp(float start, float end, float duration, Action<float> callback)
DoLerp(float start, float end, float duration, Action<float> callback, bool timeScale)
public static Tweener DoLerp(float start, float end, float duration, Action<float> callback, bool timeScale)
DoLerp(float start, float end, float duration, Action<float> callback, CurveType curveType)
public static Tweener DoLerp(float start, float end, float duration, Action<float> callback, CurveType curveType)
DoLerp(float start, float end, float duration, Action<float> callback, CurveType curveType, bool timeScale)
From start to end within duration.
public static Tweener DoLerp(float start, float end, float duration, Action<float> callback, CurveType curveType, bool timeScale)
DoMoveTowards(float start, float target, float delta, Action<float> callback, bool timeScale)
Let start move towards target at increment per second delta.
public static Tweener DoMoveTowards(float start, float target, float delta, Action<float> callback, bool timeScale)
GetAwaiter()
public TweenerAwaiter GetAwaiter()
Stop()
Stop tweened animation.
public void Stop()