Proving Grounds: 3D Platformer Mechanics Support: GitHub issues

12. Themes

Goal: give a level, or the whole project, its own look and sound through one asset: the hero's mesh and clips, crates, pickups, power-ups, enemy looks, level props, effects, HUD icons and music. No map is edited.

You need: Unreal Engine 5.3–5.8 with the plugin enabled (pictures: 5.7), Settings > Plugin Content ticked in the Content Browser (5.3–5.5: Show Plugin Content), and the demo map Course1_RunAndJump open. Stop Play before you edit a theme.

A theme is a data asset of the class CorridorTheme. The kit ships four in Plugins > Proving Grounds: 3D Platformer Mechanics > Themes: DA_Lab_Course (the demo courses use it), DA_Lab_Sample, DA_Workshop_Pilot and DA_Workshop_Theme. DA_PlatformerUI in the same folder is a UI style, not a theme.

Part 1: make a theme

  1. In the Content Browser open your own folder (here Content > MyTheme) and click Add > Miscellaneous > Data Asset.

Content Browser Add menu, Miscellaneous submenu with Data Asset

In the class picker (Pick Class For Data Asset Instance) type Corridor in the search box, select Corridor Theme and click Select. Name the asset (here DA_MyTheme). To start from a complete look instead, right-click a shipped theme and choose Duplicate, as in topics 6 and 11.

  1. Double-click the new theme to open it: the window shows Asset Type: CorridorTheme. Its Details panel has one category per part of the look; click a category header to fold or unfold it.

The new theme open, its Details categories folded: Hero, Sound, Crates, Powers, Shield, Vehicles, Enemies, Traversal, Loot, Presentation, Fx, HUD

A slot you leave empty keeps the kit's own look, so a new theme starts as the kit's built-in look. Sounds work the other way: while a theme is active, only the events its Sounds map lists play, so a new, empty theme is silent until you map them.

Part 2: use it

  1. For one level: select the level's BP_Control in the Outliner (the demo maps call it Demo_Control; topic 3 shows how to find it), type Theme in its Details search box, open the list under 3 Theme > Theme and pick your theme.

BP_Control Details searched for Theme, its list open with DA_MyTheme

  1. For the whole project, open Edit > Project Settings....

Edit menu with Project Settings...

  1. Click Game > Corridor Platformer. Default Theme is the theme of every level whose BP_Control Theme is empty; the kit sets it to DA_Workshop_Theme. Pick yours there to change it (it is saved in your project's DefaultGame.ini).

Project Settings, Game > Corridor Platformer: Default Theme DA_Workshop_Theme

  1. Make sure a packaged game gets your theme: it is loaded by name while the game runs, so nothing else pulls it into the build. Type Directories to Cook in the Project Settings search box and, under Additional Asset Directories to Cook, click + and choose your theme's folder (here /Game/MyTheme). The kit's own folders, Themes among them, are already in the list.

Project Settings searched for Directories to Cook: Additional Asset Directories to Cook with the kit's folders

Result

Click Play. The same spot 1.3 s into the run, first with DA_Lab_Course, then with the new theme on Demo_Control: the Lab theme gives the crates its crate model (SM_CrateK1_Basic); the new theme's Crates slots are empty, so the same crates fall back to the kit's built-in box (Cube with the crate texture).

Play at the same spot: crates with DA_Lab_Course, and with the new empty theme

Fill the slots you want in your theme and play again: every level that uses it changes, and the maps stay as they are.

If it doesn't work - Nothing changes: restart Play (a theme is read when Play starts). A level's BP_Control Theme wins over the project Default Theme, and a -Theme= command-line option wins over both. - The hero keeps its old look: your BP_Character child has its own Anim Set (Corridor > Animation); it wins over the theme's. Leave it empty. - Your theme is silent: map the events in Sound > Sounds (see SOUND.md). - The packaged game shows the built-in look or plays no sound: your theme's folder is missing from Additional Asset Directories to Cook.

See also: README section 9, Theme system · Quickstart