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

feat: Implement LitMotion adapter for the Tween moduleΒ #4

@Bli-AIk

Description

@Bli-AIk

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

To provide developers with choices for performance and memory allocation, the framework should support multiple tweening backends. LitMotion is a modern, high-performance, zero-allocation tweening library for Unity that is an excellent alternative to DOTween.


πŸ’‘ Feature Description

  • Expected outcome or effect: An alternative, high-performance tweening provider that implements the core tweening interface using the LitMotion library.
  • Specific implementation ideas, such as classes, methods, parameters, or API design:
    • Create a LitMotionAdapter class that also implements the Lunar.Core.Base.ITweenManager interface.
    • This adapter will translate the abstract API calls into LitMotion's builder syntax.
    • For example, a MoveTo call would be implemented using LMotion.Create(startValue, endValue, duration).BindToPosition(transform). The adapter would need to manage the motion handles.
  • Usage scenarios or benefits: Offers a modern, zero-allocation tweening option, which is ideal for performance-critical scenarios, especially on mobile, WebGL, or other resource-constrained platforms. Gives developers the flexibility to choose the tweening library that best fits their project's performance and allocation budget.
  • Engine-specific context: Works best in Play mode. Targets all platforms. Recommended for the IL2CPP scripting backend to achieve maximum performance benefits.
  • 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