Thorvg.unity
ThorVG for Unity Plugin
Install / Use
/learn @thorvg/Thorvg.unityREADME
ThorVG Unity
<p align="center"> <img width="800" height="auto" src="https://github.com/thorvg/thorvg.site/blob/main/readme/logo/512/thorvg-banner.png"> </p> ThorVG Unity supports Lottie animations, enabling seamless integration of vector-based animations in Unity projects.Installation
Via Unity Package Manager
- Open Unity Package Manager (
Window > Package Manager) - Click the
+button - Select
Add package from git URL... - Enter:
https://github.com/thorvg/thorvg.unity.git?path=/package
Quick Start
Using SVG Files
- Import: Drag
.svgfile into Unity - Use: Drag the SVG onto a GameObject with SpriteRenderer
- Done! SVG displays as a sprite
Using Lottie Animations
- Import: Drag
.jsonLottie file into Unity - Add Component: Add
TvgPlayerto a GameObject - Assign: Drag the
.jsonfile to theSourcefield - 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
