<aside> <img src="/icons/reorder_gray.svg" alt="/icons/reorder_gray.svg" width="40px" />

Navigation

</aside>

🏠 Home Page

Getting Started

Architecture

Level System

Characters & Vehicles

Run Mechanics

World Objects

Boosters & Modifiers

Progression & Economy

UI

Save & Debugging

Modules

Publishing

Reference

💰 Monetization (Ads & IAP)

<aside> 💡 Save Presets is a Core editor window that stores the current save as a named preset and loads a preset back. Use it to jump to a prepared game state during testing.

</aside>

Open the window from Window → Watermelon → Tools → Save Presets.

Typical uses

Workflow

  1. Play the game or edit the save until the state is right.
  2. Open the Save Presets window and create a preset with a name. The window stores the current default save file.
  3. Load the preset later. The save file is replaced by the preset.
  4. Remove presets that are not needed.

Presets can be grouped in tabs. A preset has an id. When no id is given, the id is the name of the preset. Code can load a preset by its id.

API

SavePresets is the static class behind the window:

Method Description
CreateSave(name, tab, id, extraFiles) Stores the current save.
LoadSave(name, tab) Loads a preset.
LoadSaveById(id) Loads a preset by its id.
RemoveSave(name, tab), RemoveSaveById(id) Removes a preset.
IsSaveExist(name, tab), IsSaveExistById(id) Checks that a preset exists.
// Editor code: load a prepared preset
SavePresets.LoadSaveById("all_levels_unlocked");

Level selection in tests

Presets store the selected level and the reached level, so they also set the level that starts. Another way to test a level is to open its scene and press Play. See Testing in the Editor.