Getting Started

Introduction

Installation

Project Configuration

Testing in Your Sandbox

Samples & Examples

Core Concepts & Glossary

Package Types

Spaces & Space Templates

Custom Avatars

Custom Avatar Animations

Avatar Attachments

Custom Prefab Objects

Embedded Packages

Drivable Vehicles

Scene Setup

Testing In Unity vs Sandbox

Controlling the Camera

Custom Collision, Layers, and Tags

Audio Mixers and Groups

Key Differences from Standard Unity3D development

Economy

Quests and Rewards

Economy Overview

Monetization

Installation

Prerequisites: Install Unity

Unity is required to use the Spatial Creator Toolkit. You can install Unity from their official site. Be sure to install one of the supported versions:

<aside> šŸ“– Supported Unity Versions

You must also include the WebGL Build Support module to be able to test in your sandbox space via your web browser. You can leave all other modules unchecked.

Screen Shot 2022-11-07 at 10.20.30 AM.png

Starter Template

To build an experience on Spatial with the Creator Toolkit you will need the Starter Template. This Unity project contains all the components, APIs, and packages you will need to publish to Spatial.

<aside> <img src="/icons/save_green.svg" alt="/icons/save_green.svg" width="40px" /> Click here to download the starter template.

</aside>

The Starter Templates also includes a number of sample assets to help you get started (find them under Assets > Examples), including:

<aside> šŸ‘‹ Have an existing Unity project you want to port to Spatial? See how below šŸ‘‡

</aside>

Opening the Starter Template

Using an Existing Unity Project

Already have a Unity project? No problem! Follow these steps to convert your project to a Spatial project.

1. Download the Starter Template

Click here to download the starter template. This project is already ready to go, and comes fully configured. Bringing your assets into this project is the easiest way to ensure your package will work correctly in Spatial.

<aside> āš ļø Double check that you have a supported version of Unity installed, which you can find listed here. If you have a different version of Unity than what is listed, some things may or may not work properly.

</aside>

2. Export your project as a Unity package

Open your project, and select all the assets under ā€œAssetsā€ in your Project panel. Once selected, click the ā€œExport packageā€¦ā€ under the ā€œAssetsā€ menu item in the main toolbar. Save this somewhere on your drive.

Untitled

Screen Shot 2022-11-07 at 5.16.40 PM.png

3. Close your project and open the Starter Template

In the next step, weā€™ll import your assets into the Spatial Starter Template.

4. Import your Unity package into the Starter Template

With the starter template project opened, select ā€œAssets/Import Package/Custom Packageā€ and select the file you saved earlier.

5. Setup your environment scene as a Spatial environment.

  1. Open the Spatial Configuration panel using the āš™ļøĀ icon in the top right toolbar.

  2. Drag your unity scene into the Environment Variant slot.

    Untitled

6. Cleanup

You can keep the Starter Template asset in your project as reference, or you may delete all of it (except for the contents of the Assets/Spatial directory).


ā† Previous

Introduction

Next ā†’

Project Configuration