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

Items

Consumable Items

Rewarding Items

World Currency

Selling Items

Scripting

Components

Entrance Point

Camera Passthrough

Interactable

Trigger Event

Point Of Interest

Environment Settings Overrides

Render Pipeline Settings Overrides

Movement Materials

Climbable

Avatar Teleporter

Empty Frame

Projector Surface

Seat Hotspot

Guidelines

Supported Features and Limitations

Performance Guidelines

Lighting

Publishing to Spatial

Lighting

<aside> 💡 We recommend completing Unity’s course on Lighting before working with lighting components.

</aside>

Typical Recommended Setup

You may create as many lights in your scene as you want, but all of them (except for 1) should be marked as “Baked”.

Screen Shot 2022-10-17 at 11.27.05 AM.png

Only one Directional Light in the space may be set to “Mixed” and may also have “Soft Shadows” enabled. This main directional light will be used for real-time shadows on systems that match the system requirements.

Screen Shot 2022-10-17 at 11.30.44 AM.png

For lightmapping, these are the settings you’ll need to make things work correctly in Spatial. You can open the lighting panel from the “Windows/Rendering/Lighting” menu bar item in the top.

Untitled

Lightmapping Settings

Tips

Note that for objects to be included in the baked lightmap, they have to be marked as “Static”.

Screen Shot 2022-10-17 at 11.46.47 AM.png

Troubleshooting - Asset Import Utility

To help creators optimize their builds to smoothly across all Spatial-supported devices, we introduced the Asset Import Utility in July 2023. In some instances it may cause unintended optimization of some project files and textures. Check out the Asset Import utility documentation for help with troubleshooting these optimization changes:

Asset Import Utility: https://docs.spatial.io/faqs/asset-import-settings

Lighting FAQ

My object isn’t receiving light-mapped shadows. How do I fix this?

My environment has no ambient color and the scene looks dark.

Skybox(panoramic) has a seamline.

Terrain isn’t rendered with normal maps on web and sandbox.

Lightmap results are unsatisfactory.

If the particles in your experience appear to have changed, Click Here for how to fix the issue.

Terrain appears Shiny.

If the particles in your experience appear to have changed, Click Here for how to fix the issue.

The appearance of particles has changed.

If the particles in your experience appear to have changed, Click Here for how to fix the issue.

Scripts that read textures or meshes no longer function properly.

If the particles in your experience appear to have changed, Click Here for how to fix the issue.

← Previous

Performance Guidelines

Next →

Publishing to Spatial