For the complete documentation index, see llms.txt. This page is also available as Markdown.

Save & Load

Runtime Studio provides a full runtime-safe save system for scenes, terrain, and imported assets. It supports .rtstudio packages, JSON fallback, and raw GZip data.


Core Concept

Runtime Studio saves everything into a single SceneSaveFile:

  • Scene objects and transforms

  • Components and their values

  • Imported runtime assets

  • Custom component state (via adapters)

  • Asset references (via resolvers)


Basic Save

using Fullscreen.RuntimeStudio.Runtime.Persistence;

public sealed class SaveExample
{
    private readonly SceneSaveManager m_SaveManager = new();

    public byte[] Save()
    {
        return m_SaveManager.ExportPackageBytes();
    }
}

Basic Load


File Import and Export


Package Format

  • Extension: .rtstudio

  • Header: RTSTUDIO1\n

  • Payload: GZip compressed JSON

Supported inputs:

  • .rtstudio

  • raw JSON

  • raw GZip JSON


Save Lifecycle

Save and load follow this order:

  1. Prepare scene for save

  2. Capture component state

  3. Serialize scene data

  4. Export assets and references

  5. Write package

Load:

  1. Read package

  2. Restore scene objects

  3. Restore components

  4. Restore terrain

  5. Rebind asset references

  6. Run runtime integrations


Component State Adapters

Use adapters when reflection is not enough.

Adapters override default save behavior.


Runtime Integration Hooks

Last updated