Overview
Actions are the fundamental building blocks of VRse Studio experiences. They define what happens in your VR world - from moving objects and playing sounds to updating user interfaces and controlling player behavior. This comprehensive reference covers all available actions and their implementation based on the current VRse Studio codebase.Understanding Actions
Actions are executable instructions that define specific behaviors in your VR experience. Each action performs a discrete task such as:- Manipulating objects in the 3D environment
- Playing audio or visual media
- Updating user interface elements
- Controlling player movement and interactions
- Managing game logic and flow
Structure
Every action follows a consistent JSON structure:- Name: The action type identifier
- Query: Target object name (when applicable)
- Option: Specific operation within the action type
- Data: JSON string containing 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 to0for actions.
Common Parameters
Most actions support these universal parameters:- waitForCompletion: Boolean indicating whether to wait for action completion before proceeding
- targetTransform: Reference to target position/rotation object
- duration: Time-based parameter for timed operations
- lerpSpeed: Animation speed for transform operations
Action Types
Actions are organized into several categories based on their functionality:Object Manipulation Actions
ObjectAction (Objects)
Controls basic object properties and transformations with enhanced animation capabilities. Options
Parameters
Example Usage
ObjectAnimationAction
Advanced object animation with precise control over position, rotation, and scale. Options
Parameters
Example Usage
Media and Audio Actions
VoiceOver Action
Converts text to speech with advanced localization and caching support. Options
Parameters
Example Usage
SFXPlayerAction
Enhanced sound effects management with cloud audio support. Options
Parameters
Example Usage
TextMediaAction
Controls text content display using MultiMediaPlayer component. Options
Parameters
Example Usage
ImageMediaAction
Controls image content display using MultiMediaPlayer component. Options
Parameters
Example Usage
VideoMediaAction
Controls video content display with completion tracking. Options
Parameters
Example Usage
User Interface Actions
UIUpdateAction
Updates Experience Panel interface elements with enhanced positioning. Options
Parameters
Example Usage
ToastMessageAction
Displays temporary notification messages with type-based styling. Parameters
Example Usage
ChecklistUIAction
Advanced checklist management with move-to-next functionality. Options
Parameters
Example Usage
MCQResponseAction
Multiple-choice question evaluation with multi-answer support. Parameters
Example Usage
Player Control Actions
PlayerAction
Enhanced player control with improved fade and movement systems. Options
Parameters
Features
- IPlayer Interface: Uses standardized player interface
- Event-Driven: Waits for action completion events
- Flexible Fading: Configurable fade effects
- Error Handling: Robust parameter validation
HapticsAction
Precise haptic feedback control for enhanced immersion. Options
Parameters
Example Usage
Interactive Component Actions
AnimationAction
Enhanced animation control supporting both Animation and Animator components. Options
Parameters
Example Usage
ObjectHighlighterAction
Object highlighting with improved state management. Options
Parameters
Example Usage
TimerAction
Countdown timer with automatic component management. Options
Parameters
Example Usage
GrabbablePropertyChangeAction
Advanced grabbable object property management. Options
Parameters
Example Usage
Meta Layer Actions
MetaLayerAction
Advanced visual effects system for enhanced object interaction feedback. Options
Supported Layer Types
- Outline: Visual object outlining with color and width control
- Label: Text labels with spatial positioning
- Arrow: Directional indicators (when available)
Features
- Simultaneous Control: Manage multiple layers in one action
- Hex Color Support: Standard hex color format (#RRGGBB or #RRGGBBAA)
- Fallback System: Uses magenta color for invalid formats
- Auto-Component Creation: Adds components if missing