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

    Interface QuarksBatchLoadOptions

    Options for QuarksLoader.loadAll / QuarksLoader.loadFromJSONAll. Batch loads share the per-scene fetch cache and shareResources, so N effects that point at the same assets/geometries/*.json or texture only pay for that asset once.

    interface QuarksBatchLoadOptions {
        concurrency?: number;
        continueOnError?: boolean;
        onProgress?: (done: number, total: number) => void;
        signal?: AbortSignal;
    }

    Hierarchy (View Summary)

    Index
    concurrency?: number

    Max concurrent effect-document fetches (phase 1). Linked geometry/image resolve still runs across the whole pack in parallel so shared urls coalesce. Default: all at once.

    continueOnError?: boolean

    When true, a failed effect becomes null in the result array and the rest keep loading. When false (default), the first failure rejects the whole batch.

    onProgress?: (done: number, total: number) => void

    Called once per effect when it has fully settled (parsed successfully, or failed under continueOnError). done is how many of total have settled so far.

    signal?: AbortSignal

    Cancels the load, e.g. on a level change. The promise rejects with the signal's reason as soon as it is aborted, and no node of the effect is left in the scene. The effect document's own fetch is cancelled; a geometry fetch shared with other loads runs on, and its result is dropped. A scene disposed during the load rejects it the same way.