Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

feat: Implement DOTween adapter for the Tween moduleΒ #3

@Bli-AIk

Description

@Bli-AIk

πŸ”— Is your feature request related to a specific issue?

The Lunar.Core.Base project defines a base class or interface for tweening, but it requires a concrete implementation to perform any animations. To make this feature usable in Unity, an adapter for a popular and robust tweening library is needed, like DOTween.


πŸ’‘ Feature Description

  • Expected outcome or effect: A concrete tweening provider that implements the core tweening interface using the DOTween library, a fast, efficient, and popular tweening engine for Unity.
  • Specific implementation ideas, such as classes, methods, parameters, or API design:
    • Create a DoTweenAdapter class that implements the Lunar.Core.Base.ITweenManager interface.
    • The adapter's methods (e.g., MoveTo, ScaleTo, Fade) will internally create and manage DOTween tweens.
    • The adapter will handle the translation from the framework's abstract tweening calls to specific DOTween API calls (e.g., a call to MoveTo would be translated to transform.DOMove).
  • Usage scenarios or benefits: Provides a highly optimized and reliable tweening backend for the framework within Unity. Developers can use the simple, abstract API from Lunar.Core while benefiting from the performance and extensive features (e.g., rich set of easings, path tweens, callbacks) of DOTween.
  • Engine-specific context: Works in both Editor and Play mode. Targets all platforms. Compatible with both Mono and IL2CPP.
  • Engine name & version: Unity 2021.3 LTS or later.

βš– Alternatives Considered

N/A


πŸ“ Additional Information

See Lunar.Core.Base#3

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions