Getting Started
Getting Started
Samples & Examples
Core Concepts & Glossary
AI Copilot (Alpha)
Unity Package Types
Spaces & Space Templates
Custom Avatars
Custom Avatar Animations
Avatar Attachments
Custom Prefab Objects
Components
‣
‣
‣
Quests and Rewards
Drivable Vehicles
Economy
Economy Overview
Monetization
Items
Consumable Items
Rewarding Items
World Currency
Selling Items
Scripting
‣
‣
Guidelines
Supported Features and Limitations
Performance Guidelines
Lighting
Publishing to Spatial
Finding Published Packages
Support
FAQs
Help and Community
Release Notes
Asset Import Settings
Trigger Event VS
In Visual Scripting you can use
Spatial Trigger On Enter
and Spatial Trigger On Exit
events to execute any sort of function when an avatar enters/exits a trigger respectively.
When using VS you can leave the enter/exit events blank in the inspector.
In the example below I am setting a bool to true when the user enters the trigger, and false when they leave.