Coding with
JavaScript & TypeScript

CoSpaces coding with JavaScript

With the help of a script you can make simple interactions or even create games. All projects you create are automatically playable in gyroscope and VR mode for mobile apps.

API Documentation

Preview image of the scripting API documentation website.

CoSpaces currently offers JavaScript and TypeScript as scripting languages. The API documentation can be found below. Every method usually contains a code sample and a demo project.

Using JavaScript or TypeScript in CoSpaces

Image showing the CoSpaces code editor with JavaScript.

Start creating scripts with the in-built code editor. Any code you create can be played in VR with the CoSpaces app.

Scripting examples

Get started with this tutorial

Need help?

Got any questions or want to exchange with other users? You’ll find support in the CoSpaces Google Group.