Class SizeTween
- Namespace
- Fallencake.UI
- Assembly
- Fallencake.UI.dll
[Serializable]
public class SizeTween : TweenBase<RectTransform, Vector2>, ITargetableTween<RectTransform, Vector2>, ITween
- Inheritance
-
objectSizeTween
- Implements
- Inherited Members
Constructors
SizeTween()
public SizeTween()
SizeTween(RectTransform, Vector2, Vector2, float, float, AnimationCurve)
public SizeTween(RectTransform target, Vector2 startValue, Vector2 endValue, float duration, float delay, AnimationCurve ease = null)
Parameters
targetRectTransformstartValueVector2endValueVector2durationfloatdelayfloateaseAnimationCurve
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
coroutineHolderMonoBehaviourMonoBehaviour used to start/stop coroutines.
isForwardboolIf true plays towards EndValue, otherwise towards StartValue.
ResetTarget()
Implemented by concrete tweens to restore target to its initial state.
protected override void ResetTarget()