Note

Make sure you’ve read the general notes about all the nodes: Reference - nodes

JSON export

This node takes SceneCity objects and outputs them in a text file, in JSON format, intended for Unity’s coordinate system and importer. The data includes objects transforms, hierarchies, and datablock name. It is meant to be used for exporting complex assets and scenes.

Here is an example file

{
  "sceneObjects": [
        {
          "world_quaternion": {
                "z": -0.16447307169437408,
                "x": -0.24067069590091705,
                "w": 0.9292796850204468,
                "y": 0.22686049342155457
          },
          "world_euler": {
                "z": -0.4573618173599243,
                "x": -0.5889853239059448,
                "y": 0.3495402932167053
          },
          "local_quaternion": {
                "z": -0.16447307169437408,
                "x": -0.24067069590091705,
                "w": 0.9292796850204468,
                "y": 0.22686049342155457
          },
          "children": [],
          "world_translation": {
                "z": 1.5673176050186157,
                "x": 1.0797417163848877,
                "y": 2.2818031311035156
          },
          "local_translation": {
                "z": 1.5673176050186157,
                "x": 1.0797417163848877,
                "y": 2.2818031311035156
          },
          "data_name": "Cube(mesh)",
          "local_scale": {
                "z": 0.840095579624176,
                "x": 0.840095579624176,
                "y": 0.840095579624176
          },
          "world_scale": {
                "z": 0.840095579624176,
                "x": 0.840095579624176,
                "y": 0.840095579624176
          }
        }
  ]
}

If you want to export cities to Unity, watch the video tutorial