Scripting using TypeScript
Important
Join the Meta Horizon Creator Program! As a member, you gain: - Access to monetization opportunities including monthly bonuses, in-world purchases and competition cash prizes.
- Helpful resources including educational content, technical support and a collaborative creator community.
Important
The desktop editor is in early access and we need your feedback! To report bugs, go to the main menu and select Report a problem. To give us feedback, select Help us improve from the main menu. Warning
Use of TypeScript and the Meta Horizon Worlds desktop editor is limited to persons aged 13 and above. Meta reserves the right to conduct its own review of the information that a creator provides to determine whether the age group provided by the creator is accurate. Any misrepresentation of user's age group may result in rejection, suspension, or removal of that creator's account and/or world.Scripting provides a way for you to add behaviors to objects in your worlds. Meta Horizon Worlds uses TypeScript as the basis for its scriptiong process and this TypeScript code gives you a way to write scripts more efficiently using traditional programming processes and tools.
Typescript is a strongly-typed version of JavaScript, adding some additional syntax to JavaScript to support a better integration with your editor. This, in turn, gives you better tooling and the ability to catch errors while you’re developing your world rather than at runtime.
The following sections will help you better understand how to use TypeScript to its best effect when creating your world.
Articles
Resources (external sites)