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": "Camera.cullingMask drops whole layers: the HUD (its Canvas is on layer 1) and the blue sprite (layer 2) are cleared from the mask, leaving only the green world on layer 0.",
"entities": [
{
"id": 0,
"name": "MainCamera",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 10
}
}
},
{
"type": "Camera",
"data": {
"projectionType": 1,
"orthoSize": 540,
"isActive": true,
"priority": 0,
"cullingMask": 4294967289
}
}
],
"visible": true
},
{
"id": 1,
"name": "WorldGreen",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": -480,
"y": 0,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 960,
"y": 4000
},
"color": {
"r": 0,
"g": 1,
"b": 0,
"a": 1
},
"layer": 0
}
}
],
"visible": true
},
{
"id": 5,
"name": "WorldYellow",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 480,
"y": 0,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 960,
"y": 4000
},
"color": {
"r": 1,
"g": 1,
"b": 0,
"a": 1
},
"layer": 3
}
}
]
},
{
"id": 2,
"name": "EffectsBlue",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": -480,
"y": 0,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 960,
"y": 4000
},
"color": {
"r": 0,
"g": 0,
"b": 1,
"a": 1
},
"layer": 2
}
}
],
"visible": true
},
{
"id": 3,
"name": "Canvas",
"parent": null,
"children": [
4
],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "Canvas",
"data": {
"designResolution": {
"x": 1920,
"y": 1080
},
"scaleMode": 1,
"layer": 1
}
},
{
"type": "UINode",
"data": {}
}
],
"visible": true
},
{
"id": 4,
"name": "Hud",
"parent": 3,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"insetTop": {
"value": 0,
"unit": 0
},
"insetLeft": {
"value": 0,
"unit": 0
},
"width": {
"value": 100,
"unit": 1
},
"height": {
"value": 100,
"unit": 1
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 1,
"g": 0,
"b": 0,
"a": 1
},
"enabled": true
}
}
],
"visible": true
}
]
}