Skip to content

Latest commit

 

History

History
45 lines (27 loc) · 3.04 KB

File metadata and controls

45 lines (27 loc) · 3.04 KB
source

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.

For troubleshooting VS Code refer to the documentation on Troubleshooting VS code for Meta Horizon Worlds library module,

Refer to TypeScript Getting Started docs for more information on how to start using TypeScript with Meta Horizon Worlds.

These instructions walk you through assigning a script reference after you have created the script.

  1. Select an object in the Hierarchy menu or in the scene pane.
  2. In the Properties panel, scroll to the Script section.
  3. Select a script from the Attached Script dropdown menu.
  4. The script is applied to the object, and the properties defined in the script now appear in the Script section of the Properties panel. The script properties appear in the Properties panel.

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.

  1. Open the Properties panel for an object that already has a script attached.
  2. Scroll down to the Script section, and click the menu dropdown.
  3. From the menu that appears, select Copy Script. The script is copied into memory.

Image shows the script menu dropdown, with the "Copy Script" option highlighted.

  1. Open the Properties Panel for another object.
  2. Navigate to the Script section, then click the menu dropdown.
  3. From the menu that appears, select Paste all script properties. A copy of the script is attached to the object.

Image shows the script menu drop-down, with the "Paste as new attached script" option selected.