Skip to content

Compiler Targets

HoloScript compiles a single .holo source file to 18+ platform targets. Choose your platform:

Quick Reference

Target FlagFileOutputPlatform
--target unityunity.mdC# MonoBehaviourUnity Engine
--target unrealunreal.mdC++ / BlueprintUnreal Engine 5
--target godotgodot.mdGDScriptGodot Engine 4.x
--target vrchatvrchat.mdUdonSharp C#VRChat SDK3
--target babylonbabylon.mdJavaScriptBabylon.js
--target webgpuwebgpu.mdTypeScriptModern Browsers
--target iosios.mdSwift + ARKitiOS 15+
--target visionosvision-os.mdSwift + RealityKitApple Vision Pro
--target androidandroid.mdKotlin + ARCoreAndroid SDK 26+
--target androidxrandroid-xr.mdKotlinAndroid XR
--target openxropenxr.mdC++Cross-platform XR
--target threejsthree-js.mdJavaScriptThree.js / Web
--target gltfgltf.mdGLB/glTFUniversal 3D
--target wasmwasm.mdWASM binaryWebAssembly
--target urdfrobotics/urdf.mdURDF XMLROS 2
--target sdfrobotics/sdf.mdSDF XMLGazebo
--target dtdliot/dtdl.mdDTDL JSONAzure Digital Twins
--target wotiot/wot.mdWoT TD JSONW3C Web of Things

Common Compiler Options

All compilers support:

OptionDescription
--output <path>Output directory
--verboseShow detailed compilation info
--watchRecompile on file changes
--sourcemapGenerate 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 --watch

Groupings

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

URDF (ROS 2) · SDF (Gazebo)

IoT & Digital Twins

DTDL (Azure) · WoT (W3C)

See Also

Released under the MIT License.