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(editor): the starters' background colour reaches the screen

yhhbd94f7a3c6ee
diff --git a/desktop/templates/playable-ad/assets/scenes/main.esscene b/desktop/templates/playable-ad/assets/scenes/main.esscene
index 11a69d7c2..4ad838a94 100644
--- a/desktop/templates/playable-ad/assets/scenes/main.esscene
+++ b/desktop/templates/playable-ad/assets/scenes/main.esscene
@@ -24,13 +24,7 @@
"projectionType": 1,
"orthoSize": 640.0,
"isActive": true,
- "priority": 0,
- "clearColor": {
- "r": 0.07,
- "g": 0.08,
- "b": 0.11,
- "a": 1
- }
+ "priority": 0
}
}
],
@@ -55,7 +49,13 @@
"x": 720,
"y": 1280
},
- "scaleMode": 2
+ "scaleMode": 2,
+ "backgroundColor": {
+ "r": 0.07,
+ "g": 0.08,
+ "b": 0.11,
+ "a": 1
+ }
}
},
{
diff --git a/desktop/templates/top-down/assets/scenes/main.esscene b/desktop/templates/top-down/assets/scenes/main.esscene
index d9ff06827..b3356c98a 100644
--- a/desktop/templates/top-down/assets/scenes/main.esscene
+++ b/desktop/templates/top-down/assets/scenes/main.esscene
@@ -27,13 +27,7 @@
"projectionType": 1,
"orthoSize": 300,
"isActive": true,
- "priority": 0,
- "clearColor": {
- "r": 0.09,
- "g": 0.1,
- "b": 0.12,
- "a": 1
- }
+ "priority": 0
}
}
],
diff --git a/desktop/templates/wechat-minigame/assets/scenes/main.esscene b/desktop/templates/wechat-minigame/assets/scenes/main.esscene
index d260956f4..e3cabaf78 100644
--- a/desktop/templates/wechat-minigame/assets/scenes/main.esscene
+++ b/desktop/templates/wechat-minigame/assets/scenes/main.esscene
@@ -24,13 +24,7 @@
"projectionType": 1,
"orthoSize": 667.0,
"isActive": true,
- "priority": 0,
- "clearColor": {
- "r": 0.07,
- "g": 0.08,
- "b": 0.11,
- "a": 1
- }
+ "priority": 0
}
}
],
@@ -55,7 +49,13 @@
"x": 750,
"y": 1334
},
- "scaleMode": 2
+ "scaleMode": 2,
+ "backgroundColor": {
+ "r": 0.07,
+ "g": 0.08,
+ "b": 0.11,
+ "a": 1
+ }
}
},
{