Deploying an Unreal SDK project
To run your project, deploy and run it on SpatialOS. You can run it as a local deployment, or in the cloud.
Deploying the project locally
To deploy locally:
- Open a terminal, navigate to the root folder of your project and run
spatial local launch default_launch.jsonto start the local deployment.
- Open your Unreal project in the Unreal Editor. Make sure you don’t accidentally open the project with a different version of Unreal since it will try to rebuild the project for that version.
- Press the ▷ Play button to join the game as a new player.
Deploying the project to the cloud
To deploy to the cloud:
- Open the project configuration file:
spatialos.json, in the project root directory.
your_project_name_here) to your SpatialOS project name.
You can find yours in the SpatialOS console. It’ll be something like
spatial cloud upload <assembly name>to upload the assembly that was built when you built the project earlier.
<assembly name>is a label that you can choose for this assembly, for example
spatial cloud launch <assembly name> default_launch.json <deployment name> --snapshot=snapshots/default.snapshot.
<deployment name>is a label for the deployment.
Go to your console.
Click on the deployment’s name.
Launch a player client by clicking ▷ Launch.