Table of Contents

Class TweenEvents

Provides events for tween.

public class TweenEvents : AbstractAnimationEvents
Inheritance
TweenEvents
Inherited Members
Extension Methods

Methods

OnCompleted(Action)

Adds an event called when the animation has completed.

public TweenEvents OnCompleted(Action callback)

Parameters

callback Action

The event.

Returns

TweenEvents

OnCompleting(Action)

Adds an event called when the animation is completing.

public TweenEvents OnCompleting(Action callback)

Parameters

callback Action

The event.

Returns

TweenEvents

OnLoopCompleted(Action<int?>)

Adds an event called when the animation loop has completed.

public TweenEvents OnLoopCompleted(Action<int?> callback)

Parameters

callback Action<int?>

The event. The parameter represents the number of loops left. If there are infinite loops it'll send a null param.

Returns

TweenEvents

OnLoopStarted(Action<int?>)

Adds an event called when the animation loop has started.

public TweenEvents OnLoopStarted(Action<int?> callback)

Parameters

callback Action<int?>

The event. The parameter represents the number of loops left. If there are infinite loops it'll send a null param.

Returns

TweenEvents

OnStarted(Action)

Adds an event called when the animation has started.

public TweenEvents OnStarted(Action callback)

Parameters

callback Action

The event.

Returns

TweenEvents

OnStarting(Action)

Adds an event called when the animation is starting.

public TweenEvents OnStarting(Action callback)

Parameters

callback Action

The event.

Returns

TweenEvents

OnUpdated(Action<float>)

Adds an event called when the animation has updated.

public TweenEvents OnUpdated(Action<float> callback)

Parameters

callback Action<float>

The event.

Returns

TweenEvents

OnUpdating(Action<float>)

Adds an event called when the animation is updating.

public TweenEvents OnUpdating(Action<float> callback)

Parameters

callback Action<float>

The event.

Returns

TweenEvents