Appearance
Scripting Beta
Beta
The Scripting API is in beta – APIs may change between releases. Scripting is part of the Pro plan and up; on a free account, Run Script and the scripting triggers are marked Pro and open the plan offer.
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, User interface, 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.