Overview of LitMotion features and performance
mainLitMotion is a high-performance tweening library for Unity designed to animate components (like Transform), custom fields, and properties.
Key characteristics include:
- High Performance: Optimized using Unity's DOTS (C# Job System and Burst Compiler), performing 2-20x faster than other libraries in various scenarios.
- Zero Allocations: Uses a struct-based design to ensure no allocations during tween creation.
- Versatility: Works in both runtime and editor, supports easing, looping, and special motions like
PunchandShake. - Async/Await Support: Fully compatible with
UniTaskfor asynchronous workflows. - Extensibility: Supports type extension via
IMotionOptionsandIMotionAdapter. - Sequencing: Use
LSequenceto combine multiple motions into a single sequence. - Inspector Integration: The
LitMotion.Animationpackage allows creating complex animations directly from the Unity Inspector.