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. This is also where a typed
or lazy asset value (see setAssetMap) is read, so it is the only way such a value reaches
resolve, texture and the rest. Pass onProgress alone
(the original signature) or a LoadAssetsOptions object for the resolution option.
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. This is also where a typed or lazy asset value (seesetAssetMap) is read, so it is the only way such a value reachesresolve,textureand the rest. PassonProgressalone (the original signature) or aLoadAssetsOptionsobject for the resolution option.