Spatial Editor project folder structure
Updated: Sep 10, 2024
The Spatial Editor project folder contains all of the
assets and
compositions in your Spatial SDK app. This folder may initially be empty if no assets or compositions have been included yet.
Key components of the project folder
Inside the project folder, there are several folders and files:
- Main.metaspatial: This file opens the project in Spatial Editor.
- Main.metaspatialobject: This file stores all the objects related to the project.
- Main.scene: This file stores and manages individual scenes within a project.
- Main.metaspatialcomposition: This file contains all the compositions for the project. Composition files act as containers for the entire composition, which can contain multiple scenes. They hold all the necessary data to recreate the composition’s state.
Compositions consist of:
- Objects: 3D objects with associated data, used to build compositions.
- Panels: 2D surfaces displaying traditional Android content.
A single project may include multiple compositions, each of which is exportable as a
glXF file. Enhance objects with
Spatial SDK components or code targeting their ID to introduce interactivity and functionality.
The Spatial Editor workspace is organized into tabs, with the Project tab displaying a hierarchical view of all project nodes. In this tab, you can manage assets by renaming, deleting, or adding new ones. When you open a composition or object, it appears in a new tab for further editing.