Skip to content

Campaign and progression

The campaign is a linear list of chapters, each with ordered levels, in Resources/CampaignData.asset (Create > AiasTech > Campaign > Campaign Data). Chapter and level Keys are localization keys in the Levels table; LevelData.SceneName is the exact, case-sensitive scene name.

Add a level

  1. Create the level and add the scene in File > Build Profiles.
  2. In CampaignData, add a LevelData at the end of the chapter with Key and SceneName.
  3. Add the key to the Levels table in both languages (Localization).
  4. Test that Next from the previous level reaches it, plus Continue and the chapter selector.

Don't reorder published levels

Saves store chapter and level indices. Appending is safe; inserting, removing or reordering breaks players' saves. During development, delete the save (Save, settings and difficulty).

To add a chapter, append a ChapterData with a translated Key and its levels. Finishing a chapter continues to the next one.

How progress works

  • Continue resumes the unlock frontier (MaxChapterReached/MaxLevelReached), not a chapter-select replay of an earlier level.
  • The chapter selector unlocks up to that same frontier and always starts the chosen level from spawn (fresh attempt); medals still show the best clear.

  • New Game erases progress and inventory but keeps the portrait.

  • Next always goes to the level after the current one, and is hidden on the last level.

Rules

  • Chapters[0].Levels[0] must exist, and each scene may appear only once.
  • Load scenes with LoadingScreen.Load(name), not SceneManager.LoadScene. The back-to-menu button loads MainScene (LoadingScreen.MainMenuSceneName).
  • Branching progression, multiple save slots and level dependencies are not supported.