- 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- Import: Drag
.svgfile into Unity - Use: Drag the SVG onto a GameObject with SpriteRenderer
- Done! SVG displays as a sprite
- 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
- ✅ Windows (x64)
- ✅ macOS (Apple Silicon)
- ✅ Linux (x64)
- ✅ WebGL
- ✅ Android (armv7a, arm64-v8, x64)
- ✅ iOS (arm64)
- Unity 2021.3 or newer
cd scripts
python3 build-thorvg.pyFor real-time conversations and discussions, please join us on Discord