Table of Contents

Class RotateTween

Namespace
Fallencake.UI
Assembly
Fallencake.UI.dll
[Serializable]
public class RotateTween : TweenBase<Transform, Vector3>, ITargetableTween<Transform, Vector3>, ITween
Inheritance
object
TweenBase<Transform, Vector3>
RotateTween
Implements
ITargetableTween<Transform, Vector3>
Inherited Members

Constructors

RotateTween()

public RotateTween()

RotateTween(Transform, Vector3, Vector3, float, float, AnimationCurve)

public RotateTween(Transform target, Vector3 startValue, Vector3 endValue, float duration, float delay, AnimationCurve ease = null)

Parameters

target Transform
startValue Vector3
endValue Vector3
duration float
delay float
ease AnimationCurve

Methods

ApplyEndValueInstant()

Instantly applies the end value to the target without animation.

protected override void ApplyEndValueInstant()

Play(MonoBehaviour, bool)

Plays the tween on a coroutine holder. Implementations should start a coroutine and call OnComplete() when finished.

public override void Play(MonoBehaviour coroutineHolder, bool isForward = true)

Parameters

coroutineHolder MonoBehaviour

MonoBehaviour used to start/stop coroutines.

isForward bool

If true plays towards EndValue, otherwise towards StartValue.

ResetTarget()

Implemented by concrete tweens to restore target to its initial state.

protected override void ResetTarget()