Setting up a project
- You’ve gone through the SDK setup guide for Windows and have everything installed.
- You have a project. You can use one of the examples at the SpatialOS GitHub repository.
1. Configure project name
- In the project’s root directory, open
spatialos.json. This file holds your project’s global configuration.
namefield, make sure the value is your assigned SpatialOS project name.
You can find your project name in the Console. It’ll be something like
2. Initialize the project
Before you can do any development on your project, you need to initialise it:
Open a terminal, navigate to the root folder of your project and run
spatial worker codegen.
If you are not using one of our starter projects, you must add
This will set up your include paths next time you generate VS project files.
Locate the Unreal project file for your project. This can be found in
Right-click on your project’s
.uprojectfile and select Switch Unreal Engine version.
Switch engine versions to the source-built version you just built.
spatial worker build. This may take an hour or more.
This will build an assembly used for both local and cloud SpatialOS deployments.