Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

fix: use valid ToastType for scene discovery notifications

esengine434d0d4e15e3
diff --git a/editor/src/builder/BuildSettingsDialog.ts b/editor/src/builder/BuildSettingsDialog.ts
index de7622de9..91ac58cae 100644
--- a/editor/src/builder/BuildSettingsDialog.ts
+++ b/editor/src/builder/BuildSettingsDialog.ts
@@ -1372,7 +1372,7 @@ export class BuildSettingsDialog {
this.render();
showToast({ type: 'info', title: 'Scenes Added', message: `Added ${added} scene(s)`, duration: 2000 });
} else if (allScenes.length === 0) {
- showToast({ type: 'warning', title: 'No Scenes Found', message: 'No .esscene files found in assets/', duration: 3000 });
+ showToast({ type: 'info', title: 'No Scenes Found', message: 'No .esscene files found in assets/', duration: 3000 });
} else {
showToast({ type: 'info', title: 'No New Scenes', message: 'All scenes already added', duration: 2000 });
}
@@ -1386,7 +1386,7 @@ export class BuildSettingsDialog {
const allScenes = await discoverProjectScenes(fs, projectDir);
if (allScenes.length === 0) {
- showToast({ type: 'warning', title: 'No Scenes Found', message: 'No .esscene files found in assets/', duration: 3000 });
+ showToast({ type: 'info', title: 'No Scenes Found', message: 'No .esscene files found in assets/', duration: 3000 });
return;
}