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

Finding Published Packages

Support

FAQs

Help and Support

Release Notes

Asset Import Settings

Visual Scripting - Getting Started

<aside> 💎 Prefer C#? We got you covered. See more here.

</aside>

What Is Visual Scripting?

Visual Scripting is a built-in Unity tool that allows you to create scripts or programs with a visual, node-based interface. Instead of writing lines of code, you create nodes and make connections to create mechanics and interactivity.

The language of Unity’s Visual Scripting (VS) is structured very closely to C#, and is capable of creating very complex systems and interactivity.

Do I Need To Be a Programmer?

Visual Scripting is designed to be extremely friendly to artists and those not experienced with programming.

Fundamentally VS is programming. But! The fact that you have found your self here, reading this paragraph, means you already have all the curiosity required to learn VS and become a programmer.

Creating Your First Graph

<aside> <img src="/icons/emoji-grinning-smiling-eyes_gray.svg" alt="/icons/emoji-grinning-smiling-eyes_gray.svg" width="40px" /> Inside your scene choose the object you want to add interactivity to and add a Script Machine component.

Untitled

On this new component click the New button to create a new Script Graph asset.

Screenshot 2023-02-01 at 3.38.38 PM.png

Once you create the asset you can click Edit Graph to open the Graph Editor. Here you can start creating a function by dragging a connection out of the On Update node.

In the video below we create a Transform.Rotate(XYZ) node. This will result in a script that causes whatever object it is placed on to rotate every frame.

Screen Recording 2023-02-01 at 3.41.19 PM.mov

</aside>

Learn How To Program

<aside> <img src="/icons/graduate_gray.svg" alt="/icons/graduate_gray.svg" width="40px" /> Creating a graph and adding nodes is just the beginning of what is possible with VS. Unity has lots of great resources that can get you started creating your own scripts and understanding the possibilities.

If this is your first time touching VS we recommend you check out Unity’s introduction course.

Introduction to Visual Scripting - Unity Learn

If you have questions feel free to reach out to the Spatial community, or even the Unity community at large. VS is a standard Unity tool, so all the information you need is usually a Google search away.

</aside>

Spatial Scripting Limitations

<aside> <img src="/icons/warning_red.svg" alt="/icons/warning_red.svg" width="40px" /> Spatial supports a limited subset of nodes and features from Visual Scripting. These limitations are enforced for you through the editor, but if you want more information check out the full limitations page:

Visual Scripting Limitations

</aside>

← Previous

Quests and Rewards

Next →

Visual Scripting Examples