ThorVG Unity

May 20, 2026 · View on GitHub

CodeFactor Discord OpenCollective License

ThorVG Unity

ThorVG Unity supports Lottie animations, enabling seamless integration of vector-based animations in Unity projects.

Installation

Via Unity Package Manager

  1. Open Unity Package Manager (Window > Package Manager)
  2. Click the + button
  3. Select Add package from git URL...
  4. Enter:
https://github.com/thorvg/thorvg.unity.git?path=/package

Quick Start

Using SVG Files

  1. Import: Drag .svg file into Unity
  2. Use: Drag the SVG onto a GameObject with SpriteRenderer
  3. Done! SVG displays as a sprite

Using Lottie Animations

  1. Import: Drag .json Lottie file into Unity
  2. Add Component: Add TvgPlayer to a GameObject
  3. Assign: Drag the .json file to the Source field
  4. Play: Hit Play to see the animation

Platform Support

  • ✅ Windows (x64)
  • ✅ macOS (Apple Silicon)
  • ✅ Linux (x64)
  • ✅ WebGL
  • ✅ Android (armv7a, arm64-v8, x64)
  • ✅ iOS (arm64)

Requirements

  • Unity 2021.3 or newer

Building ThorVG

cd scripts
python3 build-thorvg.py

Communication

For real-time conversations and discussions, please join us on Discord