Table of Contents

Class OffsetTween

Namespace
Fallencake.UI
Assembly
Fallencake.UI.dll
[Serializable]
public class OffsetTween : TweenBase<RectTransform, OffsetValues>, ITargetableTween<RectTransform, OffsetValues>, ITween
Inheritance
object
TweenBase<RectTransform, OffsetValues>
OffsetTween
Implements
Inherited Members

Constructors

OffsetTween()

public OffsetTween()

OffsetTween(RectTransform, OffsetValues, OffsetValues, float, float, AnimationCurve)

public OffsetTween(RectTransform target, OffsetValues startValue, OffsetValues endValue, float duration, float delay, AnimationCurve ease = null)

Parameters

target RectTransform
startValue OffsetValues
endValue OffsetValues
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()