<aside> <img src="/icons/reorder_gray.svg" alt="/icons/reorder_gray.svg" width="40px" />
Navigation
</aside>
<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.
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.
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");
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.