Skip to main content

Preloading Assets

Textures, sounds, and other assets can be preloaded by defining a preload.ts file in the root of your project

export default definePreload({
textures: ["res://assets/a.png"],
// ... sounds, etc
custom: async () => {
// custom preloading goes here
}
});