These are the docs for 13.3, an old version of SpatialOS.
The docs for this version are frozen: we do not correct, update or republish them.
14.2 is the newest →
Project definition file (spatialos.json
)
spatialos.json
is a file that defines a SpatialOS project. It lives in the project’s root directory.
The project is defined in the spatialos.json
file as follows:
name
- the name of the project assigned to you by Improbable, for example.my_project
.project_version
- the version of your project - any non-empty string.sdk_version
- the version of the SpatialOS SDK to use for this project, for example.9.1.0
.dependencies
(optional) - list of project dependencies defined as:name
- the name of the dependency.version
- the version of the dependency.
The minimal version of the file:
{
"name": "my_project",
"project_version": "x.x.x",
"sdk_version": "x.x.x"
}
You can specify a dependency like this:
"dependencies": [
{"name": "MyLibrary", "version": "1.0.1"},
{"name": "MyOtherLibrary", "version": "3.0.0"}
]