Skip to content
This repository has been archived by the owner on Oct 11, 2019. It is now read-only.

Latest commit

 

History

History
39 lines (27 loc) · 2.08 KB

unity-worker-structure.md

File metadata and controls

39 lines (27 loc) · 2.08 KB

Unity worker project structure

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

spatialos.[worker_type].worker.json

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 (SpatialOS documentation)] (https://docs.improbable.io/reference/13.0/shared/worker-configuration/worker-configuration) section.

Assets/EntityPrefabs

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

spatialos_worker_packages.json

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 (SpatialOS documentation) for file format details.