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
{
"version": 4,
"name": "Main",
"entities": [
{
"id": 0,
"name": "Camera",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 10
}
}
},
{
"type": "Camera",
"data": {
"projectionType": 1,
"orthoSize": 300,
"isActive": true,
"priority": 0
}
}
],
"visible": true
},
{
"id": 1,
"name": "Canvas",
"parent": null,
"children": [
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24
],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "Canvas",
"data": {
"designResolution": {
"x": 800,
"y": 600
},
"scaleMode": 2
}
},
{
"type": "UINode",
"data": {}
}
],
"visible": true
},
{
"id": 2,
"name": "Title",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 400.0,
"unit": 0
},
"insetLeft": {
"value": 50.0,
"unit": 1
},
"marginLeft": {
"value": -200.0,
"unit": 0
},
"height": {
"value": 40.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 40.0,
"unit": 0
}
}
},
{
"type": "Text",
"data": {
"content": "UIRect Anchor Layout",
"fontSize": 28,
"color": {
"r": 1,
"g": 1,
"b": 1,
"a": 1
},
"align": 1,
"verticalAlign": 1
}
}
],
"visible": true
},
{
"id": 3,
"name": "TopLeftPanel",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 180.0,
"unit": 0
},
"insetLeft": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 10.0,
"unit": 0
},
"height": {
"value": 120.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 10.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0.2,
"g": 0.4,
"b": 0.7,
"a": 0.8
}
}
}
],
"visible": true
},
{
"id": 4,
"name": "TopLeftLabel",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 180.0,
"unit": 0
},
"insetLeft": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 10.0,
"unit": 0
},
"height": {
"value": 120.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 10.0,
"unit": 0
}
}
},
{
"type": "Text",
"data": {
"content": "Top-Left",
"fontSize": 16,
"color": {
"r": 1,
"g": 1,
"b": 1,
"a": 1
},
"align": 1,
"verticalAlign": 1
}
}
],
"visible": true
},
{
"id": 5,
"name": "TopRightPanel",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 180.0,
"unit": 0
},
"insetLeft": {
"value": 100.0,
"unit": 1
},
"marginLeft": {
"value": -190.0,
"unit": 0
},
"height": {
"value": 120.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 10.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0.7,
"g": 0.2,
"b": 0.4,
"a": 0.8
}
}
}
],
"visible": true
},
{
"id": 6,
"name": "TopRightLabel",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 180.0,
"unit": 0
},
"insetLeft": {
"value": 100.0,
"unit": 1
},
"marginLeft": {
"value": -190.0,
"unit": 0
},
"height": {
"value": 120.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 10.0,
"unit": 0
}
}
},
{
"type": "Text",
"data": {
"content": "Top-Right",
"fontSize": 16,
"color": {
"r": 1,
"g": 1,
"b": 1,
"a": 1
},
"align": 1,
"verticalAlign": 1
}
}
],
"visible": true
},
{
"id": 7,
"name": "BottomStretchPanel",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"insetLeft": {
"value": 0.0,
"unit": 1
},
"insetRight": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 10.0,
"unit": 0
},
"height": {
"value": 80.0,
"unit": 0
},
"insetTop": {
"value": 100.0,
"unit": 1
},
"marginTop": {
"value": -90.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0.2,
"g": 0.6,
"b": 0.3,
"a": 0.8
}
}
}
],
"visible": true
},
{
"id": 8,
"name": "BottomStretchLabel",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"insetLeft": {
"value": 0.0,
"unit": 1
},
"insetRight": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 10.0,
"unit": 0
},
"height": {
"value": 80.0,
"unit": 0
},
"insetTop": {
"value": 100.0,
"unit": 1
},
"marginTop": {
"value": -90.0,
"unit": 0
}
}
},
{
"type": "Text",
"data": {
"content": "Bottom Stretch",
"fontSize": 16,
"color": {
"r": 1,
"g": 1,
"b": 1,
"a": 1
},
"align": 1,
"verticalAlign": 1
}
}
],
"visible": true
},
{
"id": 9,
"name": "CenterPanel",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 200.0,
"unit": 0
},
"insetLeft": {
"value": 50.0,
"unit": 1
},
"marginLeft": {
"value": -100.0,
"unit": 0
},
"height": {
"value": 150.0,
"unit": 0
},
"insetTop": {
"value": 50.0,
"unit": 1
},
"marginTop": {
"value": -75.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0.6,
"g": 0.4,
"b": 0.2,
"a": 0.8
}
}
}
],
"visible": true
},
{
"id": 10,
"name": "CenterLabel",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 200.0,
"unit": 0
},
"insetLeft": {
"value": 50.0,
"unit": 1
},
"marginLeft": {
"value": -100.0,
"unit": 0
},
"height": {
"value": 150.0,
"unit": 0
},
"insetTop": {
"value": 50.0,
"unit": 1
},
"marginTop": {
"value": -75.0,
"unit": 0
}
}
},
{
"type": "Text",
"data": {
"content": "Center",
"fontSize": 16,
"color": {
"r": 1,
"g": 1,
"b": 1,
"a": 1
},
"align": 1,
"verticalAlign": 1
}
}
],
"visible": true
},
{
"id": 11,
"name": "LeftStretchPanel",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 120.0,
"unit": 0
},
"insetLeft": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 200.0,
"unit": 0
},
"insetBottom": {
"value": 15.0,
"unit": 1
},
"insetTop": {
"value": 15.0,
"unit": 1
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0.5,
"g": 0.2,
"b": 0.6,
"a": 0.8
}
}
}
],
"visible": true
},
{
"id": 12,
"name": "LeftStretchLabel",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 120.0,
"unit": 0
},
"insetLeft": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 200.0,
"unit": 0
},
"insetBottom": {
"value": 15.0,
"unit": 1
},
"insetTop": {
"value": 15.0,
"unit": 1
}
}
},
{
"type": "Text",
"data": {
"content": "Left Stretch",
"fontSize": 16,
"color": {
"r": 1,
"g": 1,
"b": 1,
"a": 1
},
"align": 1,
"verticalAlign": 1
}
}
],
"visible": true
},
{
"id": 13,
"name": "GridItem0",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 55.0,
"unit": 0
},
"insetLeft": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 430.0,
"unit": 0
},
"height": {
"value": 55.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 195.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0.85,
"g": 0.15,
"b": 0.15,
"a": 0.9
}
}
}
],
"visible": true
},
{
"id": 14,
"name": "GridItem1",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 55.0,
"unit": 0
},
"insetLeft": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 493.0,
"unit": 0
},
"height": {
"value": 55.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 195.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0.85,
"g": 0.5,
"b": 0.15,
"a": 0.9
}
}
}
],
"visible": true
},
{
"id": 15,
"name": "GridItem2",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 55.0,
"unit": 0
},
"insetLeft": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 556.0,
"unit": 0
},
"height": {
"value": 55.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 195.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0.85,
"g": 0.85,
"b": 0.15,
"a": 0.9
}
}
}
],
"visible": true
},
{
"id": 16,
"name": "GridItem3",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 55.0,
"unit": 0
},
"insetLeft": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 619.0,
"unit": 0
},
"height": {
"value": 55.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 195.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0.5,
"g": 0.85,
"b": 0.15,
"a": 0.9
}
}
}
],
"visible": true
},
{
"id": 17,
"name": "GridItem4",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 55.0,
"unit": 0
},
"insetLeft": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 430.0,
"unit": 0
},
"height": {
"value": 55.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 258.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0.15,
"g": 0.85,
"b": 0.15,
"a": 0.9
}
}
}
],
"visible": true
},
{
"id": 18,
"name": "GridItem5",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 55.0,
"unit": 0
},
"insetLeft": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 493.0,
"unit": 0
},
"height": {
"value": 55.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 258.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0.15,
"g": 0.85,
"b": 0.5,
"a": 0.9
}
}
}
],
"visible": true
},
{
"id": 19,
"name": "GridItem6",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 55.0,
"unit": 0
},
"insetLeft": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 556.0,
"unit": 0
},
"height": {
"value": 55.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 258.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0.15,
"g": 0.85,
"b": 0.85,
"a": 0.9
}
}
}
],
"visible": true
},
{
"id": 20,
"name": "GridItem7",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 55.0,
"unit": 0
},
"insetLeft": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 619.0,
"unit": 0
},
"height": {
"value": 55.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 258.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0.15,
"g": 0.5,
"b": 0.85,
"a": 0.9
}
}
}
],
"visible": true
},
{
"id": 21,
"name": "GridItem8",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 55.0,
"unit": 0
},
"insetLeft": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 430.0,
"unit": 0
},
"height": {
"value": 55.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 321.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0.15,
"g": 0.15,
"b": 0.85,
"a": 0.9
}
}
}
],
"visible": true
},
{
"id": 22,
"name": "GridItem9",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 55.0,
"unit": 0
},
"insetLeft": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 493.0,
"unit": 0
},
"height": {
"value": 55.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 321.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0.5,
"g": 0.15,
"b": 0.85,
"a": 0.9
}
}
}
],
"visible": true
},
{
"id": 23,
"name": "GridItem10",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 55.0,
"unit": 0
},
"insetLeft": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 556.0,
"unit": 0
},
"height": {
"value": 55.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 321.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0.85,
"g": 0.15,
"b": 0.85,
"a": 0.9
}
}
}
],
"visible": true
},
{
"id": 24,
"name": "GridItem11",
"parent": 1,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 55.0,
"unit": 0
},
"insetLeft": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 619.0,
"unit": 0
},
"height": {
"value": 55.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 321.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0.85,
"g": 0.15,
"b": 0.5,
"a": 0.9
}
}
}
],
"visible": true
}
]
}