Skip to content

VRChat & Unity Export Guide

Practical workflow for exporting HoloScript scenes to Unity projects and VRChat worlds.

Overview

Current export flow is compiler-target based.

ToolRole
@holoscript/cliPrimary compile/export interface
@holoscript/compilerProgrammatic compiler entrypoint
@holoscript/coreParsing and AST utilities
  1. Author scene logic in .holo or .hsplus.
  2. Validate with the CLI.
  3. Compile to unity or vrchat target.
  4. Import output into your Unity project (and VRChat SDK project when targeting VRChat).
bash
# Install CLI
npm install -g @holoscript/cli

# Validate source
holoscript validate scene.hsplus

# Compile for Unity project
holoscript compile scene.hsplus --target unity --output ./UnityProject/Assets/HoloScript

# Compile for VRChat project
holoscript compile scene.hsplus --target vrchat --output ./VRChatProject/Assets/HoloScript

Programmatic Pipeline

Programmatic compiler APIs vary by release. Use the CLI commands above as the stable interface for CI/CD and reproducible exports.

Target Notes

Unity

  • Recommended: Unity LTS (2021.3+ or 2022.3+).
  • XR: use XR Plugin Management and XR Interaction Toolkit when building VR interactions.

VRChat

  • Use Unity version required by current VRChat Creator Companion.
  • Ensure World SDK and UdonSharp are installed in the target project.

Best Practices

  • Keep source target-agnostic where possible.
  • Validate before compile to catch trait or syntax issues early.
  • Use a web target for fast preview, then compile to Unity/VRChat for final integration.
bash
# Fast preview loop
holoscript dev scene.hsplus

Troubleshooting

IssueResolution
Missing VRChat scripts/componentsConfirm VCC project has World SDK + UdonSharp
Unity import errorsVerify target Unity version and package dependencies
Compile failuresRun holoscript validate first and fix parser/trait diagnostics

See Also

  • /compilers/unity
  • /compilers/vrchat
  • /compilers/vrchat-optimization
  • /guides/troubleshooting

Released under the MIT License.