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.

7.4 KB
Raw Blame
{
  "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": [13],
      "components": [
        { "type": "Transform", "data": {} },
        {
          "type": "Canvas",
          "data": {
            "designResolution": { "x": 800, "y": 600 },
            "scaleMode": 2
          }
        },
        { "type": "UINode", "data": {} }
      ],
      "visible": true
    },
    {
      "id": 2,
      "name": "Panel",
      "parent": 13,
      "children": [3, 4, 11, 12],
      "components": [
        { "type": "Transform", "data": {} },
        {
          "type": "UINode",
          "data": {
            "position": 1,
            "insetLeft": { "value": 20, "unit": 0 },
            "insetTop": { "value": 20, "unit": 0 },
            "insetRight": { "value": 20, "unit": 0 },
            "insetBottom": { "value": 20, "unit": 0 }
          }
        },
        {
          "type": "FlexContainer",
          "data": {
            "direction": 1,
            "justifyContent": 0,
            "alignItems": 3,
            "gap": { "x": 0, "y": 10 },
            "padding": { "left": 20, "top": 20, "right": 20, "bottom": 20 }
          }
        },
        {
          "type": "UIVisual",
          "data": {
            "visualType": 1,
            "color": { "r": 0.16, "g": 0.16, "b": 0.18, "a": 1 },
            "enabled": true
          }
        }
      ],
      "visible": true
    },
    {
      "id": 3,
      "name": "Title",
      "parent": 2,
      "children": [],
      "components": [
        { "type": "Transform", "data": {} },
        {
          "type": "UINode",
          "data": { "height": { "value": 28, "unit": 0 } }
        },
        {
          "type": "Text",
          "data": {
            "content": "UI List — virtualized list & grid",
            "fontSize": 20,
            "bold": true,
            "color": { "r": 1, "g": 1, "b": 1, "a": 1 },
            "align": 0,
            "verticalAlign": 1
          }
        }
      ],
      "visible": true
    },
    {
      "id": 4,
      "name": "ContentRow",
      "parent": 2,
      "children": [5, 8],
      "components": [
        { "type": "Transform", "data": {} },
        {
          "type": "UINode",
          "data": { "height": { "value": 404, "unit": 0 } }
        },
        {
          "type": "FlexContainer",
          "data": {
            "direction": 0,
            "justifyContent": 0,
            "alignItems": 0,
            "gap": { "x": 24, "y": 0 }
          }
        }
      ],
      "visible": true
    },
    {
      "id": 5,
      "name": "ListPane",
      "parent": 4,
      "children": [6, 7],
      "components": [
        { "type": "Transform", "data": {} },
        {
          "type": "UINode",
          "data": {
            "width": { "value": 340, "unit": 0 },
            "height": { "value": 100, "unit": 1 }
          }
        },
        {
          "type": "FlexContainer",
          "data": {
            "direction": 1,
            "justifyContent": 0,
            "alignItems": 3,
            "gap": { "x": 0, "y": 6 }
          }
        }
      ],
      "visible": true
    },
    {
      "id": 6,
      "name": "ListHeader",
      "parent": 5,
      "children": [],
      "components": [
        { "type": "Transform", "data": {} },
        {
          "type": "UINode",
          "data": { "height": { "value": 20, "unit": 0 } }
        },
        {
          "type": "Text",
          "data": {
            "content": "Contacts — vertical list",
            "fontSize": 13,
            "color": { "r": 0.72, "g": 0.72, "b": 0.78, "a": 1 },
            "align": 0,
            "verticalAlign": 1
          }
        }
      ],
      "visible": true
    },
    {
      "id": 7,
      "name": "ListSlot",
      "parent": 5,
      "children": [],
      "components": [
        { "type": "Transform", "data": {} },
        {
          "type": "UINode",
          "data": {
            "width": { "value": 340, "unit": 0 },
            "height": { "value": 378, "unit": 0 }
          }
        }
      ],
      "visible": true
    },
    {
      "id": 8,
      "name": "GridPane",
      "parent": 4,
      "children": [9, 10],
      "components": [
        { "type": "Transform", "data": {} },
        {
          "type": "UINode",
          "data": {
            "width": { "value": 336, "unit": 0 },
            "height": { "value": 100, "unit": 1 }
          }
        },
        {
          "type": "FlexContainer",
          "data": {
            "direction": 1,
            "justifyContent": 0,
            "alignItems": 3,
            "gap": { "x": 0, "y": 6 }
          }
        }
      ],
      "visible": true
    },
    {
      "id": 9,
      "name": "GridHeader",
      "parent": 8,
      "children": [],
      "components": [
        { "type": "Transform", "data": {} },
        {
          "type": "UINode",
          "data": { "height": { "value": 20, "unit": 0 } }
        },
        {
          "type": "Text",
          "data": {
            "content": "Tiles — 4-column grid",
            "fontSize": 13,
            "color": { "r": 0.72, "g": 0.72, "b": 0.78, "a": 1 },
            "align": 0,
            "verticalAlign": 1
          }
        }
      ],
      "visible": true
    },
    {
      "id": 10,
      "name": "GridSlot",
      "parent": 8,
      "children": [],
      "components": [
        { "type": "Transform", "data": {} },
        {
          "type": "UINode",
          "data": {
            "width": { "value": 336, "unit": 0 },
            "height": { "value": 378, "unit": 0 }
          }
        }
      ],
      "visible": true
    },
    {
      "id": 11,
      "name": "StatsLabel",
      "parent": 2,
      "children": [],
      "components": [
        { "type": "Transform", "data": {} },
        {
          "type": "UINode",
          "data": { "height": { "value": 18, "unit": 0 } }
        },
        {
          "type": "Text",
          "data": {
            "content": "…",
            "fontSize": 12,
            "color": { "r": 0.55, "g": 0.58, "b": 0.65, "a": 1 },
            "align": 0,
            "verticalAlign": 1
          }
        }
      ],
      "visible": true
    },
    {
      "id": 12,
      "name": "ButtonsRow",
      "parent": 2,
      "children": [],
      "components": [
        { "type": "Transform", "data": {} },
        {
          "type": "UINode",
          "data": { "height": { "value": 40, "unit": 0 } }
        },
        {
          "type": "FlexContainer",
          "data": {
            "direction": 0,
            "justifyContent": 0,
            "alignItems": 1,
            "gap": { "x": 10, "y": 0 }
          }
        }
      ],
      "visible": true
    },
    {
      "id": 13,
      "name": "Safe Content",
      "parent": 1,
      "children": [2],
      "components": [
        { "type": "Transform", "data": {} },
        { "type": "UINode", "data": { "position": 1 } },
        { "type": "SafeArea", "data": {} }
      ],
      "visible": true
    }
  ]
}