Should I combine game UI elements into an atlas or just use the individual images?

Godot Version



I have different UI images I want to use in my game. Normally, I’d throw them all into a single asset file, but from what I understand Godot would need to make multiple files anyway?

Are there any benefits to putting them into an atlas? From what I can tell, it looks like Godot needs to create an AtlasTexture for each sprite and then know its region data. At that point it almost makes more sense to just use the individual sprites as necessary.

Please correct me if I’m wrong. Any advice is appreciated :pray:

Yes, if you have a spreadsheet of ui, then you can use AtlasTexture

1 Like

Right, I know that I can, but I’m also curious as to what people normally do when they’re working with godot :slight_smile:

I just drop a single file into a button or texture rect, if I have

1 Like

I do separate image every time. It’s then easier to change something, just swap it out

1 Like

Create a layer for each sprite on the sprite sheet.
Export the sprite sheet when you edit the graphic.
All your sprites on one sheet with the same ease of use.
As an added bonus you can keep experimental graphics on the sheet by simply turning their visibility off.

1 Like