Skip to content

BenjaminHalko/Lottity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Lottity

✨ Bringing Lottie Animations to Unity using ThorVG!

Melting

⚠️ Disclaimer

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

How to Use

  • Add the LottieSprite component to any object. It will then be rendered using SpriteComponent. It's that simple!

Supported Platforms

  • Windows
  • MacOS

Development

Compiling ThorVG

ThorVG has already been included in the plugin, but in case you want to build it yourself, here's how:

  • Install Meson and Ninja

    • Windows: pip install meson ninja
    • MacOS: brew install meson
    • Linux: sudo apt install meson
  • 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 to Assets/Lottie/Plugins in your Unity Project

Demo

demo.mp4