Compiler Targets
HoloScript compiles a single .holo source file to 18+ platform targets. Choose your platform:
Quick Reference
| Target Flag | File | Output | Platform |
|---|---|---|---|
--target unity | unity.md | C# MonoBehaviour | Unity Engine |
--target unreal | unreal.md | C++ / Blueprint | Unreal Engine 5 |
--target godot | godot.md | GDScript | Godot Engine 4.x |
--target vrchat | vrchat.md | UdonSharp C# | VRChat SDK3 |
--target babylon | babylon.md | JavaScript | Babylon.js |
--target webgpu | webgpu.md | TypeScript | Modern Browsers |
--target ios | ios.md | Swift + ARKit | iOS 15+ |
--target visionos | vision-os.md | Swift + RealityKit | Apple Vision Pro |
--target android | android.md | Kotlin + ARCore | Android SDK 26+ |
--target androidxr | android-xr.md | Kotlin | Android XR |
--target openxr | openxr.md | C++ | Cross-platform XR |
--target threejs | three-js.md | JavaScript | Three.js / Web |
--target gltf | gltf.md | GLB/glTF | Universal 3D |
--target wasm | wasm.md | WASM binary | WebAssembly |
--target urdf | robotics/urdf.md | URDF XML | ROS 2 |
--target sdf | robotics/sdf.md | SDF XML | Gazebo |
--target dtdl | iot/dtdl.md | DTDL JSON | Azure Digital Twins |
--target wot | iot/wot.md | WoT TD JSON | W3C Web of Things |
Common Compiler Options
All compilers support:
| Option | Description |
|---|---|
--output <path> | Output directory |
--verbose | Show detailed compilation info |
--watch | Recompile on file changes |
--sourcemap | Generate source maps (where applicable) |
Usage
bash
# Compile to a specific target
holoscript compile scene.holo --target unity --output ./Assets/Generated/
# Compile to multiple targets
holoscript compile scene.holo --target unity --target godot --output ./builds/
# Watch mode
holoscript compile scene.holo --target webgpu --watchGroupings
Game Engines
Unity · Unreal · Godot · VRChat
Web & Browser
WebGPU · Three.js · Babylon.js · GLTF · WASM
Mobile & XR
iOS ARKit · visionOS · Android ARCore · Android XR · OpenXR
Robotics
IoT & Digital Twins
See Also
- Traits Reference — Trait → platform mapping
- CLI Reference — Full compiler CLI options
- Python Bindings — Compile from Python