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.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix: auto-create default asset-groups.json for new projects
esenginee159a19db75b
diff --git a/editor/src/asset/AssetGroup.ts b/editor/src/asset/AssetGroup.tsindex 331f06cbd..6377713f6 100644--- a/editor/src/asset/AssetGroup.ts+++ b/editor/src/asset/AssetGroup.ts@@ -77,6 +77,13 @@ export class AssetGroupService {async load(): Promise<void> {const fullPath = joinPath(this.projectDir_, CONFIG_PATH);+ const fileExists = await this.fs_.exists(fullPath);+ if (!fileExists) {+ this.config_ = createDefaultConfig();+ await this.save();+ return;+ }+const content = await this.fs_.readFile(fullPath);if (!content) {this.config_ = createDefaultConfig();