Importer for Krita (.kra, .krz) and OpenRaster (.ora) images and animations

KRaster Importer


This plugin makes it easier for you (or your artists) to use free software, such as Krita, for drawing/editing multi-layer images. It also supports OpenRaster, a standard interchange format used by multiple image editors, most of them free.


Now, you no longer need to manually export .png files from the image editor every time you make changes to the source image. By letting this process be handled in Unity, you can simplify your workflow and save your precious time!

It can do both manual and automatic conversions conveniently from Unity.


This is a hi-quality product:

  • Intuitive. The familiar interface is very easy to learn and convenient to use.
  • Efficient workflow. Import multiple files at once. Use patterns and presets to be efficient even if you want to organize your files in a different way.
  • Smart warnings to detect edge cases and guide you on how to proceed.
  • Fully documented online (wiki) and offline (tooltips).
  • Thoroughly tested. Check the documentation to solve issues or report bugs.
  • Editor-only. It doesn't need to add any runtime code to your builds.
  • Offline code. No user data is collected, so your privacy is respected.

Documentation


Setup


Firstly, make sure to go to Preferences and enable Krita after confirming the path to its executable. Although this is optional (simple PNG-based importations still work without Krita), it's required to import animations and highly recommended to get the best compatibility with advanced Krita features (HDR, color spaces, etc.).


Manual Conversions


This plugin can make Krita convert between most image formats directly from Unity. Simply right-click assets to quickly generate images next to them, or use the advanced tool to make batch conversions with full flexibility. It's very useful to quickly make Krita files for editing, or to convert formats unsupported by Unity (that Krita can open) to a format like PNG or EXR for importation.


Automatic Importations


Any Krita (.kra/.krz) and OpenRaster (.ora) files in your project will be recognized as assets and show their preview. Simply multi-select assets and pick an importation method in the inspector, then click Apply. Whenever you edit any of those files externally, it will be reimported automatically!


The recommended method is Generate File, which allows to use all[*] features of Unity's built-in texture importer. You can set a specific path/name pattern to where the images will be regenerated whenever a source image changes.

For animated files, you can make it use Krita to generate images for each frame and even group those under the same folder.


If you prefer to import textures and sprites directly as sub-assets, you also have a few options using the Import Image method, which never requires Krita.


If your project's files are well-organized, you can do more advanced automations if you use one of the included presets (or create you own). By using the preset manager you can even achieve zero-click path-based importation with full flexibility. E.g., you can make it so, by default, every source image under:

glob:"Assets/SourceTextures/**.kr[az]"

automatically generates a file on:

Assets/Textures/<subpath>/<name>.<format>