Try SpatialOS

Sites

Menu
These are the docs for 12.1, an old version of SpatialOS. The docs for this version are frozen: we do not correct, update or republish them. 13.1 is the newest →

Setup guide for macOS

This guide will prepare your Mac for local development with the SpatialOS SDK.

Note: You need to have access to SpatialOS to download the SDK.

1. System requirements

We support up-to-date versions of macOS Sierra, El Capitan and High Sierra.

Before following the setup guide check that your machine meets the hardware requirements.

2. Set up the SpatialOS CLI

To set up the SpatialOS CLI (spatial), and other prerequisites for the next step:

  1. Install the Homebrew package manager.

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
  2. In a terminal, run:

    brew tap caskroom/cask
    brew tap improbable-io/spatialos
    brew update
    brew cask install spatial
    

    Note: If you have trouble with Homebrew, try setting the SpatialOS SDK up manually instead.

    By installing spatial, you agree to the SpatialOS EULA.

  3. Check this succeeded by running spatial update in your terminal. You should get the output:

    Current version of the 'spatial' command-line tool: <version number>

    Attempting to download the latest version...

3. Set up Unity (optional)

To use the Unity SDK, even if you’ve already got Unity installed, you must follow these steps, because SpatialOS only supports specific versions of Unity, and requires specific build support.

Unity versions 5.6.0 and 2017.3.0 have been tested with SpatialOS. Other versions may work fine, but have not been extensively tested.

  1. Choose one of the options below:

    • If you already have Unity 2017.3.0 installed:

      In a terminal, run the following:

      brew cask install unity-ios-support-for-editor@2017.3.0
      brew cask install unity-linux-support-for-editor@2017.3.0
      brew cask install unity-windows-support-for-editor@2017.3.0
      
    • If you have another version of Unity, or don’t have it installed at all:

      In a terminal, run the following:

      brew cask install unity@2017.3.0
      brew cask install unity-ios-support-for-editor@2017.3.0
      brew cask install unity-linux-support-for-editor@2017.3.0
      brew cask install unity-standard-assets@2017.3.0
      brew cask install unity-windows-support-for-editor@2017.3.0
      

      This installs Unity in the default installation directory, /Applications/Unity.

      If you want to use more than one version of Unity, you must:

      1. Rename this directory (for example, mv /Applications/Unity /Applications/Unity2017.3.0). This path cannot have spaces in it.
      2. Set the UNITY_HOME environment variable to point at your chosen Unity installation.
  2. Launch Unity and complete the registration process.

4. (optional) Install the Launcher

If you want to run a game client to connect to a SpatialOS game running in the cloud, you must install the Launcher.

  1. Download the Launcher.
  2. Follow the instructions in the installation wizard.

5. Next steps

You’ve now set up your machine for development with SpatialOS!

Recommended: To learn how to use SpatialOS and experiment with its main APIs, try the Pirates tutorial (Unity).

If you’d just like to find out about what SpatialOS is:

To get started building something of your own, go to github.com/spatialos and use one of the repositories there as a starting point.

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums