Pre-load Resources
Pre-loading Resources allows assets to be downloaded at scene startup so they are ready when the player interacts with them for the first time.
import { AssetLoad } from "@dcl/sdk/ecs"
AssetLoad.create(engine.RootEntity, {
assets: [
"assets/scene/bundle1/explosionSound.mp3",
"assets/scene/bundle1/explosion.glb",
],
})Last updated