A
Publisher
alfredbaudisch
rTexPacker SpriteSheet Importer 2D
2D
Spritesheet Atlas Importer GDScript Graphics Slicing Assets Workflow
A Godot importer for spritesheets with the rtpb atlas descriptor file format created with rTexPacker.
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
Godot rTexPacker SpriteSheet Importer
A Godot importer for spritesheets with the rtpb atlas descriptor file format created with rTexPacker.
Usage
- Add the atlas image file and rtpb file into the same folder.
- If this addon is loaded, the spritesheet will be imported automatically.
- If you want to manually reimport, select the
rtpbfile in theFileSystemand then clickReimport.
- If you want to manually reimport, select the
- A resource file of type
RaySpriteSheetwill be created alongside the original files. The resource file can be inspected in the editor, it has a dictionary indexed by the sprite names and the values are the individualAtlasTexture. - To get a sprite call
resource_file.get_sprite(name).
![]()
![]()
Current limitations
- No support for rTexPacker's spacing and padding.
- No support to using the sprites during editor time, only at runtime.
- Solution to this: generate an individual
AtlasTextureresource for each sprite of the spritesheet during the import process. - Counter-argument: I created this importer because at the time I was importing a spritesheet with more than 3000 sprites. By creating a single resource file and referencing the sprites at runtime, I saw no performance impact. Whereas when I created individual resource files, Godot's performance was tanked with the more than 3000 separate resource files.
- Solution to this: generate an individual
Installation
Asset Library
Search for "rTextPacker Binary SpriteSheet Importer" and install from the AssetLib.
Manual Installation
- Clone or download the repository
- Move the
addons/rtex_binary_spritesheet_importerfolder to theaddonsfolder within your project directory (res://addons/rtex_binary_spritesheet_importer) - Enable the plugin from the
pluginstab of the Godot editor project settings