✨ Bringing Lottie Animations to Unity using ThorVG!
This is to a Proof of Concept, there are still many features missing such as:
- Better animation controls
- Speed
- Loop Points
- Pause / Resume
- Able to easily swap animations on the fly
- Add the
LottieSprite
component to any object. It will then be rendered usingSpriteComponent
. It's that simple!
- Windows
- MacOS
ThorVG has already been included in the plugin, but in case you want to build it yourself, here's how:
-
- Windows:
pip install meson ninja
- MacOS:
brew install meson
- Linux:
sudo apt install meson
- Windows:
-
Download ThorVG:
git clone https://github.com/thorvg/thorvg.git
cd thorvg
git checkout v1.0-pre8
- Compile ThorVG:
meson setup builddir -Dbindings="capi" --wipe
meson compile -C builddir
- Copy the built library from
builddir/src
toAssets/Lottie/Plugins
in your Unity Project