Setup

Setup Files

1 - Panel Settings

You must use this on UI Documents in scenes and select as active theme while working in UI Builder.

2 - Example Theme

Select this as the active theme while working in the UI Builder. It inherits from the Luna UI's theme file and adds new styles, as explained below. If you want to add more global USS styles, you can include them here.

3 - Colors.uss

There are a lot of colors already defined. But if you want custom colors, there are 3 color slots you can customize: base, primary and secondary.

Change colors in your copy of Colors.uss and place it as style sheet in your own Theme file.

For more info, see Colors.

4 - Font.uss

Just like colors, change fonts in your copy of Font.uss and place it as style sheet in your own Theme file.

For more info, see Fonts.

5 - Dropdown.uss

Currently dropdown doesn't support custom colors, you can change it's color via uss variables.

For more info, see Dropdown.

6 - Text Settings

It is easy to leave Text Settings area empty in your Panel Settings by mistake, resulting in texts not rendering correctly. Make sure it is not empty.

Last updated