By default, the GDK finds and compiles schema found within
.schema/ folders of packages referenced in your project's
To compile schema from directories outside of referenced packages, you must add your schema source directories to the GDK tools configuration.
First, create the folder in which you will be writing schema files. We recommend adding a
schema/ folder at the root of your SpatialOS project.
<project_root> ├── schema/ ├── snapshots/ ├── workers/
In the Unity Editor, select Edit > Project Settings... to open the Unity Project Settings window. Select Spatial OS from the sidebar to view the Spatial OS project settings.
If you are setting up the blank project for the first time, you will find that there are no directories listed under the Schema sources section.
To add an entry, select the ➕ icon and enter the path to the schema directory you created earlier. Note that the path must be relative to your Unity project directory.
Note: The GDK tools configuration window will display an error if the source directory does not exist.
Updated 6 months ago