How to create skin for libgdx project?

Alex Kapustian picture Alex Kapustian · Aug 4, 2014 · Viewed 8.8k times · Source

I looked at the default skin files from the test project. I don't understand why uiskin.png has a font images inside it. also the uiskin.atlas file contains split field that I don't understand why do I need it and how to use it.

Where can I find a guide to all of the things?

Answer

noone picture noone · Aug 4, 2014

It is probably a good starting point to read the Skin wiki article.

For more information there is the Skin API documentation and the Skin and SkinLoader source code.

A good starting point for a completely new skin might also be the raw default skin which you can find in the libgdx test assets. This can be packed via TexturePacker, because skins will only work with a texture atlas.

For a UI to easily create a Skin, someone has recently created an editor for that: gdx-skineditor.