mwg API
    Preparing search index...

    Function load

    • Loads assets by path, giving each one an alias equal to its path.

      Load everything a scene needs before creating it; afterwards texture() is synchronous, so game code never has to await in the middle of building a scene. Pass onProgress alone (the original signature) or a LoadAssetsOptions object for the resolution option.

      Parameters

      Returns Promise<void>