Getting Started
Package Types
Scene Setup
Custom Collision, Layers, and Tags
Key Differences from Standard Unity3D development
Economy
Scripting
C# Scripting
Visual Scripting
Sync and Multiplayer
Components
Environment Settings Overrides
Render Pipeline Settings Overrides
Guidelines
Supported Features and Limitations
Support
<aside> 💎 Prefer C#? We got you covered. See more here.
</aside>
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.
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.
<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.
On this new component click the New
button to create a new Script Graph asset.
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>
<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>
<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:
</aside>
← Previous
Next →