Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gilzoide/unity-lottie-player
Player for Lottie animations, powered by rlottie, multithread/Job System-friendly
https://github.com/gilzoide/unity-lottie-player
job-system lottie lottie-animation multithreaded rlottie unity unity3d upm upm-package
Last synced: 1 day ago
JSON representation
Player for Lottie animations, powered by rlottie, multithread/Job System-friendly
- Host: GitHub
- URL: https://github.com/gilzoide/unity-lottie-player
- Owner: gilzoide
- License: unlicense
- Created: 2024-03-04T23:28:47.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-09-07T19:23:49.000Z (18 days ago)
- Last Synced: 2024-09-23T11:32:36.720Z (2 days ago)
- Topics: job-system, lottie, lottie-animation, multithreaded, rlottie, unity, unity3d, upm, upm-package
- Language: C#
- Homepage:
- Size: 13.6 MB
- Stars: 20
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Lottie Player
[![openupm](https://img.shields.io/npm/v/com.gilzoide.lottie-player?label=openupm®istry_uri=https://package.openupm.com)](https://openupm.com/packages/com.gilzoide.lottie-player/)Player for [Lottie](https://airbnb.io/lottie) animations, powered by [rlottie](https://github.com/Samsung/rlottie).
## Features
- Scripted importer that interprets JSON files as [LottieAnimationAsset](Runtime/LottieAnimationAsset.cs)s.
This helps you separate animation files from regular JSON ones and makes sure the asset contains valid animations.
- [ImageLottiePlayer](Runtime/UI/ImageLottiePlayer.cs): a Unity UI component that plays Lottie animation assets, rendering to a texture of customizable size.
- [Job System](https://docs.unity3d.com/Manual/JobSystemOverview.html)-friendly: texture updates may run in background threads.
Use `ILottieAnimation.CreateRenderJob(...)` extension method for scheduling an animation render job.
- Supported platforms: Windows, Linux, macOS, iOS, tvOS, visionOS, Android, WebGL## How to install
Either:
- Use the [openupm registry](https://openupm.com/) and install this package using the [openupm-cli](https://github.com/openupm/openupm-cli):
```
openupm add com.gilzoide.lottie-player
```
- Install using the [Unity Package Manager](https://docs.unity3d.com/Manual/upm-ui-giturl.html) with the following URL:
```
https://github.com/gilzoide/unity-lottie-player.git#1.0.1
```
- Clone this repository or download a snapshot of it directly inside your project's `Assets` or `Packages` folder.