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.8 KB
Raw Blame
{
  "version": 4,
  "name": "MeshBuiltin",
  "entities": [
    {
      "id": 0,
      "name": "Camera",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 300
            }
          }
        },
        {
          "type": "Camera",
          "data": {
            "projectionType": 1,
            "orthoSize": 150,
            "isActive": true,
            "priority": 0
          }
        }
      ]
    },
    {
      "id": 1,
      "name": "Cube",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -75,
              "y": 0,
              "z": 0
            },
            "rotation": {
              "x": 0,
              "y": -0.3826834324,
              "z": 0,
              "w": 0.9238795325
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "color": {
              "r": 0.9,
              "g": 0.2,
              "b": 0.2,
              "a": 1
            },
            "lit": true,
            "opaque": true,
            "cullBackfaces": true,
            "enabled": true
          }
        }
      ]
    },
    {
      "id": 2,
      "name": "Sphere",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 75,
              "y": 0,
              "z": 0
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:sphere",
            "color": {
              "r": 0.2,
              "g": 0.75,
              "b": 0.3,
              "a": 1
            },
            "lit": true,
            "opaque": true,
            "cullBackfaces": true,
            "enabled": true
          }
        }
      ]
    },
    {
      "id": 3,
      "name": "Sun",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 0
            }
          }
        },
        {
          "type": "Light",
          "data": {
            "type": 1,
            "color": {
              "r": 1,
              "g": 1,
              "b": 1,
              "a": 1
            },
            "intensity": 1,
            "direction": {
              "x": -0.4142135624,
              "y": 0
            },
            "directionZ": -1
          }
        }
      ]
    }
  ]
}