Adding and editing scripts
Set up desktop editor to use your IDE
Meta Horizon Worlds Creator docs reference using Visual Studio Code (VS Code), but you can use any IDE you’ve installed on your Windows PC. See
Adding an IDE to Desktop Editor for detailed instructions on how to set up desktop editor with your preferred IDE.
Getting started with TypeScript scripting
Adding an existing script to an entity
These instructions walk you through assigning a script reference after you have created the script.
Select an object in the Hierarchy menu or in the scene pane.

Navigate to the Properties panel, then select
Attach script.

Select a script from the dropdown menu or create a new script.

The script will appear in the menu properties.

Script copying is an available feature to save you time. You can copy a script from an object, and paste it directly onto another. You can reference an object from a script by dragging it onto a script that is already attached to an object.
- Open the Properties panel for an object that already has a script attached.
- Scroll down to the Script section, and click the menu dropdown.
- From the menu that appears, select Copy Script. The script is copied into memory.
- Open the Properties Panel for another object.
- Navigate to the Script section, then click the menu dropdown.
- From the menu that appears, select Paste all script properties. A copy of the script is attached to the object.