LDtk to Unity
Import LDtk level editor projects directly into Unity using ScriptedImporters with automatic re-import on file changes. Features animated tiles, collision options, entity prefab replacements, field imports, enum generation, and extensible post-import scripting for complete workflow integration.
com.cammin.ldtkunity 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/ldtkunity.git?path=Assets/LDtkUnity README Markdown
Copy this to your project's README.md
## Installation
Add **LDtk to Unity** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/ldtkunity.git?path=Assets%2FLDtkUnity
```
[](https://www.pkglnk.dev/pkg/ldtkunity)Dependencies (3)
README
A Unity importer system for deepnight's LDtk.
It's a simple drag and drop!
Features
- Uses ScriptedImporters to import LDtk files, and re-imports when the LDtk project saves
- Animated Tiles!
- Collision options
- Entity prefab replacements
- Imports fields from entities and levels
- Automatic enum script generation
- Custom Post-import scripting to customize the import result (API)
- Properties and functions for LDtk data for better Unity context (API)
- Separates Tileset generation to optimize import speeds, and pack into a SpriteAtlas
- Supports separate level files
- Supports Unity's Configurable Enter Play Mode
- Fully documented
Can add separate level files too!
If you have any questions/problems then post an issue; I'd gladly take any feedback.
Alternatively, contact me at cameo221@gmail.com, the Discord server, or Twitter @CKrebbers.
If you like this importer, consider signing a survey for feedback or donate.
If you make a game using this, then I'd be happy to check it out! Showcase your work on the Discord server or give me a shout-out on Twitter.
Premise & Review
This importer started as an attempt to produce levels in an easy and streamlined fashion. When searching for a solution to mass-produce levels, I discovered LDtk, as its really fun to use and is relatively young. I started working on a personal level importer, but after noticing how convenient and standalone the importer has become, I took it upon myself to make this a public repo as a package! I enjoy it's production, and learning a lot in the process.
Comments
No comments yet. Be the first!

Sign in to join the conversation
Sign In