This repository was archived by the owner on Mar 7, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Implement LitMotion adapter for the Tween moduleΒ #4
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
π 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
LitMotionAdapterclass that also implements theLunar.Core.Base.ITweenManagerinterface. - This adapter will translate the abstract API calls into LitMotion's builder syntax.
- For example, a
MoveTocall would be implemented usingLMotion.Create(startValue, endValue, duration).BindToPosition(transform). The adapter would need to manage the motion handles.
- Create a
- 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Backlog