Skip to content

Access to multiple texture atlases via single skin builder #329

Answered by czyzby
Divelix asked this question in Q&A
Discussion options

You must be logged in to vote

Skin has an addRegions method that allows you to add regions from another TextureAtlas. You have to be careful to avoid name clashes in the texture region file names, as this might override existing resources.

Basically, after your UI Skin is constructed, you can load your atlas and do this:

val skin: Skin = TODO()
val atlas: TextureAtlas = TODO()

skin.addRegions(atlas)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Divelix
Comment options

@czyzby
Comment options

Answer selected by Divelix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants