Slice a Spritesheet into individual files?

Godot Version

4.4.1.stable

Question

Depending on the project, many single non-animated, and non-TileMap, sprites might be needed (tiling background images, icons, gear: weapon and armor images, etc.). Exporting all of them individually can become really tedious, and can clutter the project files. If certain modifications needed to be made, the process could become really tedious as well, due to every single image needing to be individually modified and reexported.

Take the following Spritesheet, for example. If I wanted to modify the colors, I would need to open every single sprite, modify it and reexport it.

Something like Unity’s ‘Sprite mode: multiple’ would be really helpful.


Image from: How To Import Sprite Sheets – Unity – Stuart's Pixel Games

I looked up information about this subject, and the most I could find was this post in the Godot Forum from 2022 (import spritesheet and split it up? like sprite mode -> multiple in Unity? - #2 by system), so I wanted to ask if, after some time, there is any way to do this now?

You can crop a region of a spritesheet using an AtlasTexture It won’t work for everything (tiling is not supported for example)

You’ll need to do it manually or use a script to do it automatically.

2 Likes

For certain things, using an AtlasTexture would certainly suffice, thanks! AtlasTextures not tiling properly complicates a few things though…