How to Create a New Theme
Map Themes are the basis for the visual style of the Lightship Map. For more information on how themes work, see Map Themes.
In this topic you will learn how to create a new theme from scratch. To copy an existing theme, see How to Copy an Existing Theme.
Prerequisites
- You will need a new 3D (URP) Unity project with Lightship Maps installed. For instructions, see Installing the Lightship Maps SDK.
Steps
To create a new theme:
-
Select the Assets folder in the Project view of your Unity project.
-
From the Assets menu (or the right-click menu), select Create > Maps SDK > Map Theme Prefab. This will generate a new map theme prefab - a GameObject that contains a MapTheme component.
-
Add Builders to your theme.
-
Double-click on the theme in the Hierarchy to make sure that it is shown in both the Inspector and the Hierarchy.
-
Find the Builders property underneath Skybox Color. Click the + button on the right.
-
From the menu, select the builder type to add. You can choose either a Performance [Async] or Standard builder.
-
Once you have selected the new builder, it will be added as a child to the theme GameObject.
noteIf you need to delete a builder, you have to remove it from the Builders list (above the Skybox) and delete it from the Hierarchy.
-
See Also
For more information on using Feature Builders, see How to Create a New Builder Asset and How to Change Materials in a Builder.