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": "2",
"name": "TreeView",
"rootEntityId": "0",
"entities": [
{
"prefabEntityId": "0",
"name": "TreeView",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 0
},
"rotation": {
"w": 1,
"x": 0,
"y": 0,
"z": 0
},
"scale": {
"x": 1,
"y": 1,
"z": 1
},
"worldPosition": {
"x": 0,
"y": 0,
"z": 0
},
"worldRotation": {
"w": 1,
"x": 0,
"y": 0,
"z": 0
},
"worldScale": {
"x": 1,
"y": 1,
"z": 1
}
}
},
{
"type": "UINode",
"data": {
"position": 0,
"display": 0,
"opacity": 1,
"pointerEvents": 0,
"width": {
"value": 320,
"unit": 0
},
"height": {
"value": 320,
"unit": 0
},
"minWidth": {
"value": 0,
"unit": 2
},
"minHeight": {
"value": 0,
"unit": 2
},
"maxWidth": {
"value": 0,
"unit": 2
},
"maxHeight": {
"value": 0,
"unit": 2
},
"flexGrow": 0,
"flexShrink": 1,
"flexBasis": {
"value": 0,
"unit": 2
},
"alignSelf": 0,
"marginLeft": {
"value": 0,
"unit": 0
},
"marginTop": {
"value": 0,
"unit": 0
},
"marginRight": {
"value": 0,
"unit": 0
},
"marginBottom": {
"value": 0,
"unit": 0
},
"insetLeft": {
"value": 0,
"unit": 2
},
"insetTop": {
"value": 0,
"unit": 2
},
"insetRight": {
"value": 0,
"unit": 2
},
"insetBottom": {
"value": 0,
"unit": 2
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"texture": 0,
"color": {
"r": 0.16,
"g": 0.16,
"b": 0.18,
"a": 1
},
"fit": 0,
"uvOffset": {
"x": 0,
"y": 0
},
"uvScale": {
"x": 1,
"y": 1
},
"sliceBorder": {
"x": 0,
"y": 0,
"z": 0,
"w": 0
},
"tileSize": {
"x": 32,
"y": 32
},
"fillMethod": 0,
"fillOrigin": 0,
"fillAmount": 1,
"material": 0,
"enabled": true
}
},
{
"type": "ThemeStyle",
"data": {
"visual": "surface"
}
},
{
"type": "Interactable",
"data": {
"enabled": true,
"blockRaycast": true,
"raycastTarget": true
}
},
{
"type": "Focusable",
"data": {
"tabIndex": 0,
"isFocused": false
}
},
{
"type": "UITreeView",
"data": {
"nodes": [],
"expandedIds": [],
"selectedIds": [],
"selectionMode": 1,
"rowHeight": 32,
"indent": 20,
"dragEnabled": false,
"rowPrefab": "",
"emptyPrefab": ""
}
}
],
"visible": true
}
]
}