Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Save settings#

Save settings control how your game writes and restores saved state. They apply to the entire project and ship in the build. Configure them in the Settings window, under the section named after your project.

Save Settings window

The settings control which scenes load, where bytes are written, which serializer formats them, whether the output is obscured, and what loads as the game starts.

Load policy#

Choose which scenes to restore when you load a profile:

Policy Loads
All Saved Scenes Every scene that was open when the save was written, including additive ones.
Saved Active Scene Only the scene that was active.
Specific Scene Always the same scene, whatever the save recorded.

All Saved Scenes is the default and the right choice for games built from additive scenes. Specific Scene suits games where saves are always resumed from a fixed hub.

Storage#

Choose where the save system writes its data:

Storage Writes to
Player Prefs Unity's player preferences — the registry on Windows, a plist on macOS.
Json File A JSON file in the platform's persistent data path.

Player Prefs is the default and suits prototypes or small saves. Players can find and edit it, and some platforms limit its size.

Use Json File for a release build. The resulting files can be backed up, copied between machines, and deleted by the player.

Switching storage abandons existing saves

Data written to Player Prefs isn't visible to the file backend, or the other way round. Changing the storage mid-project means existing saves stop being found. Decide before you ship.

Serializer#

The serializer formats the saved data. The built-in Unity Json option uses Unity's serialization and handles the types Visual Script supports.

Programmers can add other formats — see Custom serializers.

Encryption#

Choose whether to obscure the stored data:

Option Does
None Plain, readable output.
Caesar A simple character shift.
XOR A key-based byte transformation.

None is the default and keeps save files readable during development. Inspecting the stored values helps distinguish serialization problems from restore logic.

This is obfuscation, not security

Caesar and XOR obscure the data but don't provide cryptographic protection. Any required key ships inside the game, where a player can inspect it.

Use these options to discourage casual editing. Validate competitive or monetized state on a server instead of trusting a local save.

AES-256 module#

The free AES256 module adds AES-256 encryption to the same dropdown. After installation, AES256 appears beside the built-in options.

AES-256 raises the cost of reading or modifying a save file. However, a key embedded in the build can still be extracted, so this does not replace server-side validation for valuable data.

Programmers can also add their own schemes. See Custom encryption.

Loading shared data#

By default, Auto-Load Shared is True, and Visual Script reads shared data as the game starts, before the first scene loads. Shared data holds settings such as channel volumes, and also the list of saved profiles.

Set it to False when reading saves needs something your game only gets later, such as an encryption Secret received from a server. Shared data then keeps its default values until you load it:

  1. Set Auto-Load Shared to False.
  2. In your first scene, get what the save system needs, such as the Secret.
  3. Run Load Shared. Objects that use shared data, such as channel volumes, receive their saved values.

Until Load Shared runs, Has Any Saved Game reports no saves, and Load Profile does nothing. Values set before then are replaced by saved ones, so a volume slider moved early returns to its saved position.

Saving before Load Shared loses the profile list

Save Shared, Save Profile, and Delete Profile all write shared data, including the list of saved profiles. Run one before Load Shared, and the list loses every profile saved in earlier sessions. Their files stay on disk, but Load Profile can no longer find them.

If what the save system needs never arrives, such as when the player is offline, don't offer saving in that session.

You can run Load Shared more than once. Each run reads shared data again and replaces the current values with the saved ones.

Loading a profile at startup#

Set Auto-Load Profile to True to continue a saved game without going through a menu. Once, as the game starts, Visual Script loads the profile in Profile Index the same way Load Profile does, scenes included.

To continue whichever profile the player saved last, use the Last Saved Profile Signal in Profile Index. When the slot has no save, such as on a first launch, nothing loads and the game carries on in its first scene.

Loading a profile needs the list of saved profiles, which lives in shared data. With Auto-Load Shared set to False, that list isn't loaded yet when the game starts, so Auto-Load Profile finds no save and loads nothing. Run Load Profile after Load Shared instead.

In the Editor, the profile also loads each time you enter Play mode, replacing the scene you have open. Set Auto-Load Profile to False while you work on a single scene.

Startup reads these fields before any scene loads

Auto-Load Shared, Auto-Load Profile, and Profile Index take Signals. As the game starts, Visual Script reads them before any scene loads, and possibly before Global Variables are set up, so a Signal that depends on either may not have its value yet. Last Saved Profile works, because Profile Index is read after shared data loads.

A practical configuration#

Stage Storage Encryption
Development Json File None — keeps the output readable
Testing Json File The one you intend to ship with
Release Json File The option validated during testing

Changing encryption can make existing saves unreadable. Select and test the release configuration before shipping, while you can still replace development saves.

Where to go next#

Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.