Welcome to the Unity Lottie Animation plugin! This Unity library enables you to play Lottie animations as Texture2D in your Unity projects. It's a powerful and easy-to-use solution that leverages Samsung's rlottie library to bring smooth Lottie animations to your games and applications.
Lottie loads and renders animations and vectors exported in the bodymovin JSON format. Bodymovin JSON can be created and exported from After Effects with bodymovin, Sketch with Lottie Sketch Export, and from Haiku.
For the first time, designers can create and ship beautiful animations without an engineer painstakingly recreating it by hand. Since the animation is backed by JSON they are extremely small in size but can be large in complexity!
- Play Lottie animations as Texture2D in Unity
- Easy integration and usage
- High performance and low memory footprint
- Uses Samsung's rlottie library internally
- Compatible with Unity 2020.3 and later
To install the Unity Lottie Animation to Texture2D plugin using the Unity Package Manager, follow these steps:
- Open your Unity project and navigate to
Window
>Package Manager
. - Click the
+
button in the top-left corner and selectAdd package from git URL...
. - Enter the following URL and click
Add
:https://github.com/gindemit/unity-rlottie.git?path=/unity/RLottieUnity/Assets/LottiePlugin/#0.1.0
Check out the 'Scene UI' Sample in Unity Package manager.
- Open your Unity project and navigate to
Window
>Package Manager
. - Select the installed Lottie Animation package on the left
- Fold out the Samples section
- Click 'Import' button on the Scene UI sample
- After importing it will ask you to copy the sample animations to the Assets/StreaminAssets folder
- Click 'Copy' button in the 'Missing lottie animations' dialog
- Open the 'SampleScene' from the sample in 'Assets/Samples/Lottie Animation/[version]/Scene UI/Scenes/' folder
- Hit play in Unity editor
2021-11-30.22-28-52.mp4
If you encounter any issues or have questions, please create an issue on GitHub.
This plugin is built on top of Samsung's rlottie library, which is used internally for Lottie animation rendering.
This project is licensed under the MIT License. See the LICENSE file for details.