Appearance
Scripting Beta
Beta
The Scripting API is in beta – APIs may change between releases. Scripting is available to selected accounts; see Developer actions for how to request access.
Add dynamic behaviour to your experiences with JavaScript. Scripts get typed access to the scene graph, entities, materials, audio, networking, animations, and GPU compute – running live in the editor preview and on device.
Start here
- Getting Started – your first script, the global objects, and the script lifecycle.
- Events – run scripts in response to scene and object events.
- Materials, Live labels, Feature detection, Compute kernels – focused guides.
- Examples – complete, copy-pasteable scripts.
API reference
The API reference documents every type – the scene, entities, math and geometry, networking, audio, animation, and compute APIs.