Get SpatialOS


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

Unity worker project structure

Code for the Unity workers - the UnityWorker and the UnityClient - should be placed in the workers/ directory as follows:


This file tells SpatialOS how to build, launch, and interact with the Unity workers.

For details on the file format, see the Configuring a worker section.


You should store the prefabs associated with SpatialOS entities in this directory.


spatialos_worker_packages.json contains the dependencies to download for the worker.

By default, it is auto-generated (ie, your spatialos.[worker_type].worker.json contains "build" : { "generated_build_scripts_type": "unity" }). If you are auto-generating this file, you should not add it to version control.

Auto-generating this file should be fine for most users, but you can turn off generated build scripts. If you do, create this file to specify which dependencies the worker needs and where they should be downloaded to. See this page for file format details.

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums