SpatialOS Unity SDK Starter Project
- GitHub repository: github.com/spatialos/StarterProject
- A Player spawned on client connection as per the Unity Client Lifecycle Guide.
- A Cube spawned through a snapshot via an entity template method and an Unity prefab.
- The rest of the features included in the BlankProject.
If you run into problems, or want to give us feedback, please visit the SpatialOS forums.
New from June 2018: The SpatialOS Unity GDK
Check out the pre-alpha release of our new Unity GDK: source code on GitHub. Using the Unity Entity Component System (ECS), the GDK is the next evolution in SpatialOS Unity game development. See our blog post on ECS-powered multiplayer for more information.
Note: The pre-alpha GDK version is available for evaluation and feedback only. It's not yet game-development ready.
Running the project
To run the project locally, first build it by running
spatial worker build, then start the server with
spatial local start. You can connect a client by opening the Unity project and pressing the play button, or by running
spatial local worker launch UnityClient default. See the documentation for more details.
To deploy the project to the cloud, first build it by running
spatial worker build -t=deployment, then upload the assembly with
spatial cloud upload <assembly name>, and finally deploy it with
spatial cloud launch <assembly name> <launch configuration file> <deployment name> --snapshot=<snapshot file>. You can obtain and share links to connect to the deployment from the console. See the documentation for more details.
Copyright (C) 2017 Improbable Worlds Limited. All rights reserved.