godot-krita-importer
godot-krita-importer copied to clipboard
Import sprites as files
I needed my sprites to be imported as png files into my project to be able to use them as normal images in godot. That way nodes can be copied out of the imported kra scene and used in other scenes independently. Plus they then can be compressed by godot when exporting etc.
I added an "import as files option" in the importer.
It's working really well:
It creates a folder where all the files are and instead of using raw image data, it loads the pngs using godot load function, using a compressed version as it would do for other pngs imported into godot. It creates directories to respect layers tree.
You can see it's pointing to the png file (imported version of the png file created by godot) and no longer an ImageTexture using RAW data.
ImageTexture can be efficient at runtime, but using proper images makes more sense to me if I need to export the project. Plus, that way it's easier to use imported stuff in other scenes.