Project definition file

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"}

Updated about a year ago

Project definition file

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.