Class TweenAnimatorBase
- Namespace
- Fallencake.UI
- Assembly
- Fallencake.UI.dll
Base MonoBehaviour providing common tween playback helpers and loop handling for UI animators.
public abstract class TweenAnimatorBase : MonoBehaviour
- Inheritance
-
objectObjectComponentBehaviourMonoBehaviourTweenAnimatorBase
- Derived
Methods
OnDisable()
protected virtual void OnDisable()
OnSimpleTweenComplete(ITweenBasicParameters, bool, Action)
Stops tween coroutine and optionally keeps reference when looping.
protected void OnSimpleTweenComplete(ITweenBasicParameters tween, bool isLooped, Action onComplete = null)
Parameters
tweenITweenBasicParametersisLoopedboolonCompleteAction
OnSimpleTweenComplete(ITweenBasicParameters, bool, bool, Action)
Variant of OnSimpleTweenComplete(ITweenBasicParameters, bool, Action) that also checks completion flag.
protected void OnSimpleTweenComplete(ITweenBasicParameters tween, bool isEnabledOnComplete, bool isLooped, Action onComplete = null)
Parameters
tweenITweenBasicParametersisEnabledOnCompleteboolisLoopedboolonCompleteAction
OnTweenComplete(ITweenBasicParameters, bool, Action)
Stops a tween coroutine and invokes completion callback based on flags.
protected virtual void OnTweenComplete(ITweenBasicParameters tween, bool isEnabledOnComplete, Action onComplete)
Parameters
tweenITweenBasicParametersisEnabledOnCompleteboolonCompleteAction
PlayPopupTween(PopupTweenParameters, bool, bool, bool, Action, Action)
Plays a popup-style tween (show/hide) with per-mode durations/eases and optional instant mode.
protected virtual void PlayPopupTween(PopupTweenParameters tween, bool isShowing, bool isEnabledOnComplete, bool isInstantly = false, Action onComplete = null, Action onUpdate = null)
Parameters
tweenPopupTweenParametersisShowingboolisEnabledOnCompleteboolisInstantlyboolonCompleteActiononUpdateAction
PlayTween(TweenParameters, LoopType, bool, Action)
Plays a single tween using extension coroutines and supports optional loop policies.
protected virtual void PlayTween(TweenParameters tween, LoopType loopType = LoopType.None, bool isEnabledOnComplete = true, Action onComplete = null)
Parameters
tweenTweenParametersloopTypeLoopTypeisEnabledOnCompleteboolonCompleteAction