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.

2.6 KB
Raw Blame
{
  "version": 4,
  "name": "Overlay camera over a linear frame",
  "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,
            "cullingMask": 4293918719
          }
        }
      ],
      "visible": true
    },
    {
      "id": 1,
      "name": "MidGray",
      "parent": null,
      "children": [],
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 300,
              "y": 300
            },
            "color": {
              "r": 1,
              "g": 1,
              "b": 1,
              "a": 1
            },
            "texture": "@uuid:5d6b1a2e-90c4-4f7a-8b3d-2f81c0a4e5f6"
          }
        }
      ],
      "visible": true
    },
    {
      "id": 2,
      "name": "OverlayCamera",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 10
            }
          }
        },
        {
          "type": "Camera",
          "data": {
            "projectionType": 1,
            "orthoSize": 300,
            "isActive": true,
            "priority": 1,
            "clearFlags": 2,
            "cullingMask": 1048576
          }
        }
      ]
    },
    {
      "id": 3,
      "name": "Held",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -220,
              "y": 0,
              "z": 1
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 100,
              "y": 100
            },
            "color": {
              "r": 1,
              "g": 0,
              "b": 0,
              "a": 1
            },
            "layer": 20,
            "texture": "@uuid:5d6b1a2e-90c4-4f7a-8b3d-2f81c0a4e5f6"
          }
        }
      ]
    }
  ]
}