Documentation - v19.16.0-dev
    Preparing search index...

    Where a load of a MeshLoader is, and what it did so far, all its files together (those of the loads added to it included): told by the loader's signals, given by MeshLoader.load once it is over. The sizes grow as the files tell theirs: as they start downloading, and once their header is read.

    interface LoadProgress {
        downloaded: number;
        downloadSize: number;
        elapsed: number;
        errors: readonly Error[];
        percent: number;
        read: number;
        skipped: readonly SkippedMesh[];
        total: number;
    }
    Index

    Properties

    downloaded: number

    Bytes downloaded.

    downloadSize: number

    Bytes to download (those of the files whose server does not tell left out).

    elapsed: number

    Milliseconds since the load started.

    errors: readonly Error[]

    An error per file that failed, its message starting with the file's name, in the order they came. The objects a file gave before are added. The load's own list, as skipped.

    percent: number

    Where the load is, from 0 to 100, all its files together, each weighing the same: a file not started counts 0, one done (read or failed) in full, one being read a quarter for its download and the rest for its objects read. Grows as the files are read; goes back when files are added to the load (MeshLoader.load while it runs). The sizes and counts below cover only the files started: to show a load's progress, read this.

    read: number

    Objects read (left out included).

    skipped: readonly SkippedMesh[]

    The objects left out (their count: its length), each with its reason (see SkipReason), in the order they came. The load's own list, growing until it is over: read it, copy it to keep it as it is.

    total: number

    Objects in the files whose header is read.