babylon.quarks - v1.0.0
    Preparing search index...

    Function serializeEffect

    • Writes an effect, the node tree under root with its emitters, meshes and prefabs, as one JSON document QuarksLoader loads back: the counterpart of loader.load(). The result holds only plain data, so JSON.stringify takes it as is. Nodes keep their ids (quarksNodeId), so sub emitters, mesh surface shapes and prefab animations still find their targets, and a loaded effect saved again writes the same file.

      Textures are written by url, with their sampler state. One with no url a file can point at is written without its image and reported through onWarning. Several roots are written as children of one group.

      Parameters

      Returns QuarksEffectJSON