development-guide

Event listeners

February 22, 2018
development-guide

❗Warning: This is a legacy page covering functionality with the old SDK version 6. See the latest version of this topic here . There are several events that the scene can subscribe to, to know the actions of the player while in or near the scene. For button and click events performed by the player, see Button events . Player connects or disconnects # Whenever another player starts or stops being rendered by the local engine, this creates an event you can listen to. ...

Event listeners

February 22, 2018
development-guide

There are several events that the scene can subscribe to, to know the actions of the player while in or near the scene. For button and click events performed by the player, see Button events . Player enters or leaves scene # Whenever an avatar steps inside or out of the parcels of land that make up your scene, or teleports in or out, this creates an event you can listen to. ...

2D UI

February 15, 2018
development-guide

❗Warning: This is a legacy page covering functionality with the old SDK version 6. See the latest version of this topic here . There are several special component types that are meant for using in a 2D screen space as part of the UI, instead of in the 3D world space. These components are displayed fixed on the player’s screen. UI elements are only visible when the player is standing inside the scene’s LAND parcels, as neighboring scenes might have their own UI to display. ...

UI special types

October 28, 2022
development-guide

There are certain special entity types that allow for some special kinds of interactions. Dropdown # Create a Dropdown entity to allow users to expand and select an item from a list. A Dropdown entity must have at least the following properties: options: What values to display when the dropdown is expanded. Provide an object containting an arraw with a string value for each option. The first value in the array is displayed as the default option. ...

Advanced button events

February 14, 2018
development-guide

If you need the interaction in your scene to follow custom logic that is not compatible with the Register callback or the System based approaches, you can deal with the raw input event data directly. This approach is the hardest, but the most flexible. The PointerEventsResult component # When a pointer event is detected by the engine, the entity that was clicked is assigned a PointerEventsResult component. This component contains all the raw data about the hit event, and stores historic data about previous events. ...

Coding essentials

January 1, 2018
development-guide

The development tools # At a very high level, the Decentraland Software Development Kit (SDK) allows you to do the following: Generate a default project containing a Decentraland scene, including all the assets needed to render and run your content. Build, test, and preview the content of your scene locally in your web browser - completely offline, and without having to make any Ethereum transactions or own LAND. Write TypeScript code using the Decentraland API to add interactive and dynamic behavior to the scene. ...

Using the CLI

February 21, 2022
development-guide

❗Warning: This is a legacy page covering functionality with the old SDK version 6. See the latest version of this topic here . To build scenes for Decentraland you an either use The Creator Hub The Command Line Interface (CLI) Both tools allow you to compile and preview your scene in an “off-chain” development environment. After testing your scene locally, you can upload your content to the content server, linking it with your LAND. ...

Using the CLI

February 21, 2022
development-guide

To build scenes for Decentraland you an either use The Creator Hub The Command Line Interface (CLI) Both tools allow you to compile and preview your scene in an “off-chain” development environment. After testing your scene locally, you can upload your content to the content server, linking it with your LAND or WORLD. Although the Scene Editor in the Creator Hub is easier to use, the CLI allows you more flexibility, and can be easily used in automated processes. ...

SDK7 feedback guidelines

November 4, 2022
development-guide

Documentation # Find the full documentation for SDK7 in under the SDK7 section of the documentation. Using the playground # To easily try out SDK7, visit the playground . Write SDK7 code on the left of the screen, and see the resulting scene on the right. As you change the code, the scene is updated automatically. If you run into any issues, please copy a URL to the current setup of your scene with the Share button, and report an issue including that link to your code. ...

Deprecated functions

February 22, 2018
development-guide

The following functions are all legacy and should be avoided. They still work, but in the future they might stop being supported. All these examples include links to alternative ways to obtain the same information or achieve the same results. Player enters or leaves scene # 📔 Note: The onEnterSceneObservable and onLeaveSceneObservable events are deprecated on SDK 7.x. Use onEnterScene instead, see Player enters or leaves scene . Whenever an avatar steps inside or out of the parcels of land that make up your scene, or teleports in or out, this creates an event you can listen to. ...