Skip to Content
AssetsScripts

Scripts

.js

Creating a script

  1. Right click in the Assets panel and select “New…”.
  2. Give your file a name that ends with .js (For example, my-script.js).
  3. Double click on your script file in the Assets panel to open the script in your default code editor. It will contain a basic template for a script.
  4. More info about how to write scripts can be found in the Scripting documentation.

Using a script

  1. While having an entity selected, click on the Scripts tab in the Inspector panel.
  2. Click on the “Add script” button.
  3. Select the script you want to add from the list. You can search for the script by filename or drag your script from the Asset panel to the Scripts panel.
Last updated on