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

Interactable

Trigger Event

Point Of Interest

Projector Surface

Quests and Rewards

https://youtu.be/21OUsBrLMS8

<aside> <img src="/icons/warning_yellow.svg" alt="/icons/warning_yellow.svg" width="40px" /> This is an experimental component, It is likely to receive large changes in the future!

</aside>

<aside> <img src="/icons/link_blue.svg" alt="/icons/link_blue.svg" width="40px" /> Visual Scripting Implementation

</aside>

<aside> <img src="/icons/book_gray.svg" alt="/icons/book_gray.svg" width="40px" /> A quest is a journey taken in order to fulfill a certain goal or objective, involving a series of tasks along the way. Quest serve as a way to create a compelling story or adventure for your users. The goal of a quest can range from the discovery of treasure, the rescue of a captive, or the defeat of a powerful enemy, and the obstacles encountered along the way can test the skills, courage, and determination of the quest-taker.

</aside>

<aside> <img src="/icons/token_green.svg" alt="/icons/token_green.svg" width="40px" /> Rewards Users can be rewarded when finishing quests with Badges, and Items

</aside>

An active quest in a space.

An active quest in a space.

Quest Properties

Untitled

Property Function
Quest Name Name of the quest
Quest Description Short description of what the quest objective is
Start Automatically Setting this on starts the quest automatically. There can only be one active quest at a time
Save User Progress When turned on, the user’s progress on quests and individual tasks is preserved between sessions.
If you want users to be able to “restart” a quest, you can simply trigger the “Reset Quest” and “Start Quest” events.
Tasks Are Ordered If true, only the first task will be started and once it’s completed, the next task will start. If false, all tasks are automatically started when the quest completes.
Celebrate On Complete If true, the quest plays a confetti celebration animation when the quest is completed.
Quest Rewards Rewards to be given when the quest is completed. There are two reward types: Badges and Items. Badges (https://spatialxr.notion.site/Badges-e94a3f9ee8f548288095c713a5424c81) are like achievements, and Items are things that a user can own and consume.
Tasks List of tasks that must be completed to complete the quest. See Task Properties section.
On Started Event Event that is triggered when the quest has started.
On Completed Event Event that is triggered when the quest has finished.
On Previously Completed Event Event that is triggered when the user loads into a space where a quest was previously completed. Only used when “Save User Progress” is set to true.
This event allows you to “fast forward” any settings in the scene that should be enabled if a quest was previously completed.
On Reset Event Event that is triggered when quest is reset.

Untitled

Task Properties

Property: Function
Name Displayed name of the task
Type - Check: The task can be completed by doing one action.

How to start a quest

There are two ways to start a quest:

How to progress a quest

You can trigger a quest task to complete or progress through Quest Events. These can be triggered through any Spatial Event available via Trigger Event, Point Of Interest, and Interactable.

How to restart a quest

Use a Trigger Event or Interactable to trigger an event that resets and restarts a quest like this:

Untitled

Examples

An Interactable that completes a Quest Task

Untitled

In this example, we created an Interactable that:

A Trigger that adds progress to a Quest Task

Untitled

This second example shows a Trigger Event. Entering this trigger will

There are 2 additional copies of this game object in the scene.

Once a users finds all 3 objects the task will complete.

Add a Task Marker

https://www.loom.com/share/b42322124fec49498f40e0e76b7a3828

Quest Rewards

Quests currently have two types of rewards:

To award an item to a user for completing a quest, simply add a reward to the Spatial Quest component, select reward type Item and enter the ItemID for the item you want to reward.

Untitled

To award a badge, simply select “Badge” as the reward type and then select the badge from the drop-down menu.

Badges

← Previous

Projector Surface

Next →

Economy Overview