Get SpatialOS

Sites

Menu
You are viewing the docs for 11.0, an old version of SpatialOS. 12.0 is the newest →

Project definition file - spatialos.json

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

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums