Preparing search index...

    Utility class for converting between binary and YAML representations of graph files.

        // Editor.Graph (@hidden @beta) converts between binary graph files and YAML.
    // Useful for diffing or hand-editing material/visual-script graphs.
    const fs = await import('LensStudio:FileSystem');
    const tmp = fs.TempDir.create();
    const yamlPath = tmp.path.appended(new Editor.Path('graph.yaml'));
    const binaryPath = tmp.path.appended(new Editor.Path('graph.bin'));

    // Round-trip a real graph file in your project:
    // Editor.Graph.convertGraphToYaml(binaryPath, yamlPath);
    // Editor.Graph.convertYamlToGraph(yamlPath, binaryPath);
    console.log(`Editor.Graph round-trip paths: ${binaryPath.toString()} <-> ${yamlPath.toString()}`);
    Index

    Constructors

    Constructors