These are the docs for 13.8, an old version of SpatialOS. The docs for this version are frozen: we do not correct, update or republish them. 14.5 is the newest →

Project definition file (spatialos.json)

We are in the process of releasing a new, flexible project layout (currently in beta).

When it’s stable, we intend the flexible project layout to replace the project layout described on this page.

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

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums