Overview
Triggers are the detection mechanisms that power interactive experiences in VRse Studio. They act as the “sensors” of your VR world, continuously monitoring for specific user actions and environmental changes. When conditions are met, triggers fire events that can advance your story, execute actions, or respond to user behavior. This comprehensive reference covers all available triggers and their implementation based on the current VRse Studio codebase.Understanding Triggers
What Are Triggers?
Triggers are event detection systems that monitor specific conditions within your VR experience. Each trigger watches for discrete events such as:- Object Interactions: Grabbing, touching, or manipulating objects
- Spatial Relationships: Object placement, collisions, or proximity
- User Behavior: Eye tracking, movement patterns, or responses
- Time-Based Events: Countdown completions or duration thresholds
- System Events: UI interactions, evaluations, or custom conditions
Trigger Structure
Every trigger follows a consistent JSON structure:- Name: The trigger type identifier
- Query: Target object name being monitored
- Option: Specific detection behavior within the trigger type
- Data: JSON string containing configuration parameters
- Type: Legacy field (currently unused, reserved for future functionality)
Note: TheTypefield is currently not used in the system and has no functionality. It is maintained for backward compatibility and may be utilized for future features. Always set this to1for triggers.
Common Parameters
Most triggers support these universal parameters:- handOption: Specify hand detection (“None”, “Left”, “Right”, “Both”)
- waitForCompletion: Control trigger completion behavior
- targetObjectName: Reference to monitored object
- duration: Time-based thresholds for detection
- isTrigger: Physics detection mode (trigger vs collision)
Trigger Categories
Triggers are organized into several categories based on their detection focus:Object Interaction Triggers
GrabbableTrigger
Detects when objects are grabbed, released, or used (squeezed) with hand-specific detection capabilities. Options
Parameters
Example Usage
HandTouchTrigger
Detects hand contact with objects or surfaces for precise touch interactions. Options
Example Usage
PlacePointTrigger
Monitors object placement at specific locations with support for correct/incorrect placement detection. Options
Parameters
Example Usage
Spatial Detection Triggers
CollisionTrigger
Detects physical interactions between objects with support for both trigger and collision detection. Options
Parameters
Example Usage
EyeLevelDetectionTrigger
Tracks when objects enter, stay within, or exit the user’s eye level for attention-based interactions. Options
Parameters
Example Usage
Time-Based Triggers
TimerTrigger
Responds to countdown timer completion for time-sensitive training scenarios. Parameters
Example Usage
Universal Triggers
AnyTrigger
Universal interaction detector that captures any user action with advanced filtering capabilities. Parameters
Example Usage
Evaluation Triggers
MCQResponseTrigger
Detects responses to multiple-choice questions with support for correctness evaluation. Options
Example Usage