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

    Interface FormatReadOptions

    How a read of an effect file reports the parts it cannot read as written.

    interface FormatReadOptions {
        onWarning?: (message: string, path: string) => void;
        strict?: boolean;
    }
    Index
    onWarning?: (message: string, path: string) => void

    Called for each part that cannot be read as written (an unknown behavior, shape or curve type, a link to a node the effect does not have), with what was used instead, and the JSON path of the part, such as object.children[2].ps.behaviors[3] (empty when no path is known). Default: a console warning that names the path.

    strict?: boolean

    Throws a QuarksFormatError for the first such part, from inside the read, instead of reading on; whatever the read had built is left to the caller. Default false: the part takes its default and the rest of the effect loads. The loader's own strict option reads the whole effect first and frees it before it throws.