Table of Contents

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
object
Object
Component
Behaviour
MonoBehaviour
TweenAnimatorBase
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

tween ITweenBasicParameters
isLooped bool
onComplete Action

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

tween ITweenBasicParameters
isEnabledOnComplete bool
isLooped bool
onComplete Action

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

tween ITweenBasicParameters
isEnabledOnComplete bool
onComplete Action

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

tween PopupTweenParameters
isShowing bool
isEnabledOnComplete bool
isInstantly bool
onComplete Action
onUpdate Action

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

tween TweenParameters
loopType LoopType
isEnabledOnComplete bool
onComplete Action