Documentation
    Preparing search index...

    Interface SceneDocument

    A complete §79 scene document.

    Directly JSON.stringify-able: every field is JSON already. nodes holds the document's root nodes — one for a document written by serializeScene, which serializes a single subtree; the array shape is what lets a document carry several roots at all, and instantiateSceneNodes reads them back.

    interface SceneDocument {
        formatVersion: number;
        nodes: readonly SceneNodeDocument[];
    }
    Index
    formatVersion: number

    Always SCENE_FORMAT_VERSION for a document this build accepted.

    nodes: readonly SceneNodeDocument[]

    The document's root nodes, in order.