CoSpaces Edu scripting API - Version 2021.03

CoSpaces Edu supports scripting for creating advanced, interactive experiences!

Changes in 2021.03

Getting started

To add scripts to your Scene, click the Code - button in the toolbar and select script. To run your scripts, press the Play - button in the toolbar.

Working with items

Items in CoSpaces Edu are categorized by different interfaces based on functionality. BaseItem is the base item class which exposes core item functionality. Child interfaces such as the AnimatedItem add additional methods and properties.

Event handlers

Event handlers allow you to create triggers for inputs, collisions, and application states. Most handlers are unique; creating a new event handler of the same kind causes the previous one to be disposed.

You can create event handlers for